Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapConfig ¶
type BootstrapConfig struct {
// Components is the list of components to install.
Components []string
// Owner is the owner of the management repository.
Owner string
// Repository is the name of the management repository.
Repository string
// FromFile is the path to a file containing the bootstrap component in archive format.
FromFile string
// Registry is the registry to use for the bootstrap components
Registry string
// Hostname is the hostname of the Git provider.
Hostname string
// Path is the target path to use in the management repository to store the bootstrap component.
Path string
// Interval is the interval to use to sync the bootstrap component.
Interval string
// CommitMessageAppendix is the appendix to add to the commit message
// for example to skip CI
CommitMessageAppendix string
// Private indicates whether the management repository should be private.
Private bool
// CaFile defines and optional root certificate for the git repository used by flux.
CaFile string
}
BootstrapConfig is the configuration shared by the bootstrap commands.
func (*BootstrapConfig) AddFlags ¶
func (m *BootstrapConfig) AddFlags(flags *pflag.FlagSet)
AddFlags adds the bootstrap flags to the given flag set.
type ComponentSubscriptionConfig ¶ added in v0.4.0
type ComponentSubscriptionConfig struct {
CreateConfig
Component string
Semver string
SourceUrl string
SourceSecretRef string
DestinationUrl string
DestinationSecretRef string
ServiceAccount string
Verify []string
}
ComponentSubscriptionConfig is the configuration for the create component subscription command.
func (*ComponentSubscriptionConfig) AddFlags ¶ added in v0.4.0
func (c *ComponentSubscriptionConfig) AddFlags(flags *pflag.FlagSet)
AddFlags adds the component subscription flags to the given flag set.
type CreateConfig ¶ added in v0.4.0
CreateConfig is the configuration shared by the create commands.
func (*CreateConfig) AddFlags ¶ added in v0.4.0
func (c *CreateConfig) AddFlags(flags *pflag.FlagSet)
AddFlags adds the create flags to the given flag set.
type GiteaConfig ¶
type GiteaConfig struct {
BootstrapConfig
Personal bool
}
GiteaConfig is the configuration for the GitHub bootstrap command.
func (*GiteaConfig) AddFlags ¶
func (g *GiteaConfig) AddFlags(flags *pflag.FlagSet)
AddFlags adds the Gitea bootstrap flags to the given flag set.
type GithubConfig ¶
type GithubConfig struct {
BootstrapConfig
Personal bool
}
GithubConfig is the configuration for the GitHub bootstrap command.
func (*GithubConfig) AddFlags ¶
func (g *GithubConfig) AddFlags(flags *pflag.FlagSet)
AddFlags adds the GitHub bootstrap flags to the given flag set.
type GitlabConfig ¶ added in v0.6.3
type GitlabConfig struct {
BootstrapConfig
Personal bool
TokenType string
}
GitlabConfig is the configuration for the Gitlab bootstrap command.
func (*GitlabConfig) AddFlags ¶ added in v0.6.3
func (g *GitlabConfig) AddFlags(flags *pflag.FlagSet)
AddFlags adds the Gitea bootstrap flags to the given flag set.
type MpasConfig ¶
type MpasConfig struct {
// Printer is the printer to use for output.
Printer *printer.Printer
// Timeout is the timeout to use for operations.
Timeout string
// PollInterval is used for Api call where we wait on a resource to be ready.
PollInterval time.Duration
// DockerconfigPath is the path to the docker config file.
DockerconfigPath string
// KubeConfigArgs are the kubeconfig arguments.
KubeConfigArgs *genericclioptions.ConfigFlags
// PlainHTTP indicates whether to use plain HTTP instead of HTTPS.
PlainHTTP bool
// Export indicates whether to export to a file.
Export bool
// ExportPath is the path to export to.
ExportPath string
}
MpasConfig is the global configuration for the mpas CLI.
func (*MpasConfig) AddFlags ¶
func (m *MpasConfig) AddFlags(flags *pflag.FlagSet)
AddFlags adds the global flags to the given flag set.
type ProductDeploymentGeneratorConfig ¶ added in v0.4.0
type ProductDeploymentGeneratorConfig struct {
CreateConfig
SubscriptionName string
SubscriptionNamespace string
RepositoryName string
RepositoryNamespace string
ServiceAccount string
}
ProductDeploymentGeneratorConfig is the configuration for the create product generator command.
func (*ProductDeploymentGeneratorConfig) AddFlags ¶ added in v0.4.0
func (p *ProductDeploymentGeneratorConfig) AddFlags(flags *pflag.FlagSet)
AddFlags adds the product generator flags to the given flag set.
type ProjectConfig ¶ added in v0.4.0
type ProjectConfig struct {
CreateConfig
Provider string
Owner string
Branch string
Visibility string
Personal bool
Domain string
Maintainers []string
Email string
Message string
Author string
AlreadyExistsPolicy string
SecretRef string
}
ProjectConfig is the configuration for the create project command.
func (*ProjectConfig) AddFlags ¶ added in v0.4.0
func (p *ProjectConfig) AddFlags(flags *pflag.FlagSet)
AddFlags adds the project flags to the given flag set.