Documentation
¶
Index ¶
Constants ¶
View Source
const ( // KUSTOMIZE is a kustomization builder type KUSTOMIZE = iota // CHART is a chart builder type CHART )
Variables ¶
This section is empty.
Functions ¶
func MakeArtifacts ¶
func MakeArtifacts(pam *ProfilesArtifactsMaker, installation profilesv1.ProfileInstallation) ([]artifact.Artifact, error)
MakeArtifacts makes profile artifacts.
Types ¶
type ArtifactsMaker ¶ added in v0.0.3
type ArtifactsMaker interface {
Make(installation profilesv1.ProfileInstallation) error
}
ArtifactsMaker can create a list of artifacts.
type Builder ¶ added in v0.0.3
type Builder interface { // Build a single artifact from a profile artifact and installation. Build(artifact profilesv1.Artifact, installation profilesv1.ProfileInstallation, definition profilesv1.ProfileDefinition) ([]artifact.Artifact, error) }
Builder can build an artifacts from an installation and a profile artifact.
type MakeArtifactsFunc ¶ added in v0.0.3
type MakeArtifactsFunc func(pam *ProfilesArtifactsMaker, installation profilesv1.ProfileInstallation) ([]artifact.Artifact, error)
MakeArtifactsFunc defines a method to create artifacts from an installation using a maker.
type MakerConfig ¶ added in v0.0.3
type MakerConfig struct { GitClient git.Git RootDir string GitRepoNamespace string GitRepoName string ProfileName string }
MakerConfig contains all configuration properties for the Artifacts Maker.
type ProfilesArtifactsMaker ¶ added in v0.0.3
type ProfilesArtifactsMaker struct { MakerConfig Builders map[int]Builder // contains filtered or unexported fields }
ProfilesArtifactsMaker creates a list of artifacts from profiles data.
func NewProfilesArtifactsMaker ¶ added in v0.0.3
func NewProfilesArtifactsMaker(cfg MakerConfig) *ProfilesArtifactsMaker
NewProfilesArtifactsMaker creates a new profiles artifacts maker.
func (*ProfilesArtifactsMaker) GetProfileDefinition ¶ added in v0.0.4
func (pa *ProfilesArtifactsMaker) GetProfileDefinition(repoURL, branch, path string) (profilesv1.ProfileDefinition, error)
GetProfileDefinition returns a definition based on a url and a branch.
func (*ProfilesArtifactsMaker) Make ¶ added in v0.0.3
func (pa *ProfilesArtifactsMaker) Make(installation profilesv1.ProfileInstallation) error
Make generates artifacts without owners for manual applying to a personal cluster.
Click to show internal directories.
Click to hide internal directories.