Documentation
¶
Index ¶
- func SetProviderDataFormat(provider string, data []byte) string
- type Bootstrap
- type Kustomize
- type Kustomizer
- type Option
- func WithCommitMessageAppendix(commitMessageAppendix string) Option
- func WithComponents(components []string) Option
- func WithDefaultBranch(defaultBranch string) Option
- func WithDescription(description string) Option
- func WithDockerConfigPath(dockerConfigPath string) Option
- func WithFromFile(fromFile string) Option
- func WithInterval(interval time.Duration) Option
- func WithKubeClient(kubeclient client.Client) Option
- func WithOwner(owner string) Option
- func WithPersonal(personal bool) Option
- func WithPrinter(printer *printer.Printer) Option
- func WithRESTClientGetter(restClientGetter genericclioptions.RESTClientGetter) Option
- func WithRegistry(registry string) Option
- func WithRepositoryName(repositoryName string) Option
- func WithRootFile(caFile string) Option
- func WithTarget(targetPath string) Option
- func WithTestURL(testURL string) Option
- func WithTimeout(timeout time.Duration) Option
- func WithToken(token string) Option
- func WithTransportType(transportType string) Option
- func WithVisibility(visibility string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetProviderDataFormat ¶ added in v0.4.0
SetProviderDataFormat takes some data and updates it according to the provider's need. If the provider is not known, it returns the data as is unchanged, but converted to string.
Types ¶
type Bootstrap ¶
type Bootstrap struct {
// contains filtered or unexported fields
}
Bootstrap runs the bootstrap of mpas. This means it creates a new management repository and the installs the bootstrap component in the cluster targeted by the kubeconfig.
func New ¶
func New(providerClient gitprovider.Client, opts ...Option) (*Bootstrap, error)
New returns a new Bootstrap. It accepts a gitprovider.Client and a list of options.
func (*Bootstrap) DeleteManagementRepository ¶
DeleteManagementRepository deletes the management repository.
type Kustomize ¶ added in v0.4.0
type Kustomize struct {
// contains filtered or unexported fields
}
func NewKustomizer ¶ added in v0.4.0
func NewKustomizer(opts *kustomizerOptions) *Kustomize
NewKustomizer creates a new kustomizer based on mutation options.
type Kustomizer ¶ added in v0.4.0
Kustomizer can kustomize a given component and change image information.
type Option ¶
type Option func(*options)
Option is a function that sets an option on the bootstrap
func WithCommitMessageAppendix ¶
WithCommitMessageAppendix sets the commit message appendix to use for the bootstrap component
func WithComponents ¶
WithComponents sets the components to include in the management repository
func WithDefaultBranch ¶
WithDefaultBranch sets the default branch of the management repository
func WithDescription ¶
WithDescription sets the description of the management repository
func WithDockerConfigPath ¶
WithDockerConfigPath sets the docker config path to use for the bootstrap component
func WithFromFile ¶
WithFromFile sets the file from which to read the bootstrap component
func WithInterval ¶
WithInterval sets the interval to use for the bootstrap component
func WithKubeClient ¶
WithKubeClient sets the kubeclient to use for the bootstrap component
func WithPersonal ¶
WithPersonal sets the personal flag of the management repository
func WithPrinter ¶
WithPrinter sets the printer to use for printing messages
func WithRESTClientGetter ¶
func WithRESTClientGetter(restClientGetter genericclioptions.RESTClientGetter) Option
WithRESTClientGetter sets the RESTClientGetter to use for the bootstrap component
func WithRegistry ¶
WithRegistry sets the registry to use for the bootstrap component
func WithRepositoryName ¶
WithRepositoryName sets the repository name of the management repository
func WithRootFile ¶ added in v0.1.0
func WithTarget ¶
WithTarget sets the targetPath of the bootstrap component
func WithTestURL ¶
WithTestURL sets the testURL to use for the bootstrap component
func WithTimeout ¶
WithTimeout sets the timeout to use for the bootstrap component
func WithTransportType ¶
WithTransportType sets the transport type to use for git operations
func WithVisibility ¶
WithVisibility sets the visibility of the management repository