Documentation ¶
Index ¶
- func FilterMatches(args, matches []string) []string
- func FilteredMatchingFinder(args []string, prefix string, finder func(prefix string) []string) []string
- func NewAppChartCmd(client AppchartsService) *cobra.Command
- func NewAppChartDefaultCmd(client AppchartsService) *cobra.Command
- func NewAppChartListCmd(client AppchartsService) *cobra.Command
- func NewAppChartShowCmd(client AppchartsService) *cobra.Command
- func NewAppCreateCmd(client ApplicationsService) *cobra.Command
- func NewAppDeleteCmd(client ApplicationsService) *cobra.Command
- func NewAppEnvCmd(client AppenvService) *cobra.Command
- func NewAppEnvListCmd(client AppenvService) *cobra.Command
- func NewAppEnvSetCmd(client AppenvService) *cobra.Command
- func NewAppEnvShowCmd(client AppenvService) *cobra.Command
- func NewAppEnvUnsetCmd(client AppenvService) *cobra.Command
- func NewAppExecCmd(client ApplicationsService) *cobra.Command
- func NewAppExportCmd(client ApplicationsService) *cobra.Command
- func NewAppListCmd(client ApplicationsService, rootCfg *RootConfig) *cobra.Command
- func NewAppLogsCmd(client ApplicationsService) *cobra.Command
- func NewAppManifestCmd(client ApplicationsService) *cobra.Command
- func NewAppPortForwardCmd(client ApplicationsService) *cobra.Command
- func NewAppPushCmd(client ApplicationsService) *cobra.Command
- func NewAppRestageCmd(client ApplicationsService) *cobra.Command
- func NewAppRestartCmd(client ApplicationsService) *cobra.Command
- func NewAppShowCmd(client ApplicationsService, rootCfg *RootConfig) *cobra.Command
- func NewAppUpdateCmd(client ApplicationsService) *cobra.Command
- func NewApplicationsCmd(client ApplicationsService, rootCfg *RootConfig) *cobra.Command
- func NewClientSyncCmd(client *usercmd.EpinioClient) *cobra.Command
- func NewConfigurationBindCmd(client ConfigurationService) *cobra.Command
- func NewConfigurationCmd(client ConfigurationService, rootCfg *RootConfig) *cobra.Command
- func NewConfigurationCreateCmd(client ConfigurationService) *cobra.Command
- func NewConfigurationDeleteCmd(client ConfigurationService) *cobra.Command
- func NewConfigurationListCmd(client ConfigurationService, rootCfg *RootConfig) *cobra.Command
- func NewConfigurationShowCmd(client ConfigurationService, rootCfg *RootConfig) *cobra.Command
- func NewConfigurationUnbindCmd(client ConfigurationService) *cobra.Command
- func NewConfigurationUpdateCmd(client ConfigurationService) *cobra.Command
- func NewExportRegistriesCmd(client *usercmd.EpinioClient) *cobra.Command
- func NewGitconfigCmd(client *usercmd.EpinioClient) *cobra.Command
- func NewGitconfigCreateCmd(client *usercmd.EpinioClient) *cobra.Command
- func NewGitconfigDeleteCmd(client *usercmd.EpinioClient) *cobra.Command
- func NewGitconfigListCmd(client *usercmd.EpinioClient) *cobra.Command
- func NewGitconfigShowCmd(client *usercmd.EpinioClient) *cobra.Command
- func NewInfoCmd(client *usercmd.EpinioClient, rootCfg *RootConfig) *cobra.Command
- func NewLoginCmd(client LoginService) *cobra.Command
- func NewLogoutCmd(client LoginService) *cobra.Command
- func NewNamespaceCmd(client NamespaceService, rootCfg *RootConfig) *cobra.Command
- func NewNamespaceCreateCmd(client NamespaceService) *cobra.Command
- func NewNamespaceDeleteCmd(client NamespaceService) *cobra.Command
- func NewNamespaceListCmd(client NamespaceService, rootCfg *RootConfig) *cobra.Command
- func NewNamespaceShowCmd(client NamespaceService, rootCfg *RootConfig) *cobra.Command
- func NewServiceBindCmd(client ServicesService) *cobra.Command
- func NewServiceCatalogCmd(client ServicesService) *cobra.Command
- func NewServiceCreateCmd(client ServicesService) *cobra.Command
- func NewServiceDeleteCmd(client ServicesService) *cobra.Command
- func NewServiceListCmd(client ServicesService, rootCfg *RootConfig) *cobra.Command
- func NewServicePortForwardCmd(client ServicesService) *cobra.Command
- func NewServiceShowCmd(client ServicesService, rootCfg *RootConfig) *cobra.Command
- func NewServiceUnbindCmd(client ServicesService) *cobra.Command
- func NewServiceUpdateCmd(client ServicesService) *cobra.Command
- func NewServicesCmd(client ServicesService, rootCfg *RootConfig) *cobra.Command
- func NewSettingsCmd(client *usercmd.EpinioClient) *cobra.Command
- func NewSettingsColorsCmd(client *usercmd.EpinioClient) *cobra.Command
- func NewSettingsShowCmd(client *usercmd.EpinioClient) *cobra.Command
- func NewSettingsUpdateCACmd(client *usercmd.EpinioClient) *cobra.Command
- func NewTargetCmd(client *usercmd.EpinioClient) *cobra.Command
- func NewVersionCmd() *cobra.Command
- type AppChartMatcher
- type AppDeleteConfig
- type AppExecConfig
- type AppExportConfig
- type AppForwardConfig
- type AppListConfig
- type AppLogsConfig
- type AppMatcher
- type AppRestageConfig
- type AppVarMatcher
- type AppchartsService
- type AppenvService
- type ApplicationsService
- type ChangeConfig
- type ChartValueConfig
- type ConfigurationAppMatcher
- type ConfigurationCreateConfig
- type ConfigurationDeleteConfig
- type ConfigurationListConfig
- type ConfigurationService
- type EnumValue
- type EpinioMatcher
- type FlagCompletionFunc
- func NewAppChartMatcherValueFunc(matcher AppChartMatcher) FlagCompletionFunc
- func NewRegistryMatcherValueFunc(matcher RegistryMatcher) FlagCompletionFunc
- func NewServiceChartValueFunc(matcher ServiceChartValueMatcher) FlagCompletionFunc
- func NewStaticFlagsCompletionFunc[T ~string](allowedValues []T) FlagCompletionFunc
- type GitconfigCreateConfig
- type GitconfigDeleteConfig
- type GitconfigMatcher
- type LoginConfig
- type LoginService
- type MatcherFunc
- type NamespaceDeleteConfig
- type NamespaceService
- type RegistryMatcher
- type RootConfig
- type ServiceAppMatcher
- type ServiceChartValueMatcher
- type ServiceCreateConfig
- type ServiceDeleteConfig
- type ServiceForwardConfig
- type ServiceListConfig
- type ServiceMatcher
- type ServiceUpdateConfig
- type ServicesService
- type SettingsShowConfig
- type ValidArgsFunc
- func AnyArgsValidator(matcher MatcherFunc) ValidArgsFunc
- func FirstArgValidator(matcher MatcherFunc) ValidArgsFunc
- func NewAppChartMatcherFirstFunc(matcher AppChartMatcher) ValidArgsFunc
- func NewAppMatcherAnyFunc(matcher AppMatcher) ValidArgsFunc
- func NewAppMatcherFirstFunc(matcher AppMatcher) ValidArgsFunc
- func NewAppVarMatcherFunc(matcher AppVarMatcher) ValidArgsFunc
- func NewConfigurationAppMatcherFunc(matcher ConfigurationAppMatcher) ValidArgsFunc
- func NewEpinioArgValidator(matcher *EpinioMatcher) ValidArgsFunc
- func NewGitconfigMatcherFunc(matcher GitconfigMatcher) ValidArgsFunc
- func NewServiceAppMatcherFunc(matcher ServiceAppMatcher) ValidArgsFunc
- func NewServiceMatcherAnyFunc(matcher ServiceMatcher) ValidArgsFunc
- func NewServiceMatcherFirstFunc(matcher ServiceMatcher) ValidArgsFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterMatches ¶ added in v1.11.0
FilterMatches will check the args for the suggested matches, filtering the one already matched from the args
func FilteredMatchingFinder ¶
func FilteredMatchingFinder(args []string, prefix string, finder func(prefix string) []string) []string
FilteredMatchingFinder uses the finder function to find the resources matching the given prefix. It then filters the matches, removing the provided args, and returns that as its result.
func NewAppChartCmd ¶ added in v1.11.0
func NewAppChartCmd(client AppchartsService) *cobra.Command
NewAppchartsCmd returns a new 'epinio app chart' command
func NewAppChartDefaultCmd ¶ added in v1.11.0
func NewAppChartDefaultCmd(client AppchartsService) *cobra.Command
NewAppChartDefaultCmd returns a new `epinio app chart default` command
func NewAppChartListCmd ¶ added in v1.11.0
func NewAppChartListCmd(client AppchartsService) *cobra.Command
NewAppChartListCmd returns a new `epinio app chart list` command
func NewAppChartShowCmd ¶ added in v1.11.0
func NewAppChartShowCmd(client AppchartsService) *cobra.Command
NewAppChartShowCmd returns a new `epinio app env show` command
func NewAppCreateCmd ¶ added in v1.11.0
func NewAppCreateCmd(client ApplicationsService) *cobra.Command
NewAppCreateCmd returns a new `epinio apps create` command
func NewAppDeleteCmd ¶ added in v1.11.0
func NewAppDeleteCmd(client ApplicationsService) *cobra.Command
NewAppDeleteCmd returns a new `epinio apps delete` command
func NewAppEnvCmd ¶ added in v1.11.0
func NewAppEnvCmd(client AppenvService) *cobra.Command
NewAppEnvCmd returns a new 'epinio app chart' command
func NewAppEnvListCmd ¶ added in v1.11.0
func NewAppEnvListCmd(client AppenvService) *cobra.Command
NewAppEnvListCmd returns a new `epinio app env list` command
func NewAppEnvSetCmd ¶ added in v1.11.0
func NewAppEnvSetCmd(client AppenvService) *cobra.Command
NewAppEnvSetCmd returns a new `epinio app env set` command
func NewAppEnvShowCmd ¶ added in v1.11.0
func NewAppEnvShowCmd(client AppenvService) *cobra.Command
NewAppEnvShowCmd returns a new `epinio app env show` command
func NewAppEnvUnsetCmd ¶ added in v1.11.0
func NewAppEnvUnsetCmd(client AppenvService) *cobra.Command
NewAppEnvUnsetCmd returns a new `epinio app env unset` command
func NewAppExecCmd ¶ added in v1.11.0
func NewAppExecCmd(client ApplicationsService) *cobra.Command
NewAppExecCmd returns a new `epinio apps exec` command
func NewAppExportCmd ¶ added in v1.11.0
func NewAppExportCmd(client ApplicationsService) *cobra.Command
NewAppExportCmd return a new `epinio apps export` command
func NewAppListCmd ¶ added in v1.11.0
func NewAppListCmd(client ApplicationsService, rootCfg *RootConfig) *cobra.Command
NewAppListCmd returns a new `epinio app list` command
func NewAppLogsCmd ¶ added in v1.11.0
func NewAppLogsCmd(client ApplicationsService) *cobra.Command
NewAppLogsCmd returns a new `epinio apps logs` command
func NewAppManifestCmd ¶ added in v1.11.0
func NewAppManifestCmd(client ApplicationsService) *cobra.Command
NewAppManifestCmd returns a new `epinio apps manifest` command
func NewAppPortForwardCmd ¶ added in v1.11.0
func NewAppPortForwardCmd(client ApplicationsService) *cobra.Command
NewAppPortForwardCmd returns a new `epinio apps port-forward` command
func NewAppPushCmd ¶ added in v1.11.0
func NewAppPushCmd(client ApplicationsService) *cobra.Command
NewAppPushCmd returns a new `epinio apps push` command
func NewAppRestageCmd ¶ added in v1.11.0
func NewAppRestageCmd(client ApplicationsService) *cobra.Command
NewAppRestageCmd returns a new `epinio app restage` command
func NewAppRestartCmd ¶ added in v1.11.0
func NewAppRestartCmd(client ApplicationsService) *cobra.Command
NewAppRestartCmd returns a new `epinio app restart` command
func NewAppShowCmd ¶ added in v1.11.0
func NewAppShowCmd(client ApplicationsService, rootCfg *RootConfig) *cobra.Command
NewAppShowCmd returns a new `epinio apps show` command
func NewAppUpdateCmd ¶ added in v1.11.0
func NewAppUpdateCmd(client ApplicationsService) *cobra.Command
NewAppUpdateCmd returns a new `epinio apps update` command
func NewApplicationsCmd ¶ added in v1.11.0
func NewApplicationsCmd(client ApplicationsService, rootCfg *RootConfig) *cobra.Command
NewApplicationsCmd returns a new 'epinio app' command
func NewClientSyncCmd ¶
func NewClientSyncCmd(client *usercmd.EpinioClient) *cobra.Command
NewClientSyncCmd implements the command: epinio client-sync
func NewConfigurationBindCmd ¶
func NewConfigurationBindCmd(client ConfigurationService) *cobra.Command
NewConfigurationBindCmd returns a new 'epinio configuration bind' command
func NewConfigurationCmd ¶
func NewConfigurationCmd(client ConfigurationService, rootCfg *RootConfig) *cobra.Command
NewConfigurationCmd returns a new 'epinio configuration' command
func NewConfigurationCreateCmd ¶
func NewConfigurationCreateCmd(client ConfigurationService) *cobra.Command
NewConfigurationCreateCmd returns a new 'epinio configuration create' command
func NewConfigurationDeleteCmd ¶
func NewConfigurationDeleteCmd(client ConfigurationService) *cobra.Command
NewConfigurationDeleteCmd returns a new 'epinio configuration delete' command
func NewConfigurationListCmd ¶
func NewConfigurationListCmd(client ConfigurationService, rootCfg *RootConfig) *cobra.Command
NewConfigurationListCmd returns a new 'epinio configuration list' command
func NewConfigurationShowCmd ¶
func NewConfigurationShowCmd(client ConfigurationService, rootCfg *RootConfig) *cobra.Command
NewConfigurationShowCmd returns a new 'epinio configuration show' command
func NewConfigurationUnbindCmd ¶
func NewConfigurationUnbindCmd(client ConfigurationService) *cobra.Command
NewConfigurationUnbindCmd returns a new 'epinio configuration unbind' command
func NewConfigurationUpdateCmd ¶
func NewConfigurationUpdateCmd(client ConfigurationService) *cobra.Command
NewConfigurationUpdateCmd returns a new 'epinio configuration update' command
func NewExportRegistriesCmd ¶ added in v1.11.0
func NewExportRegistriesCmd(client *usercmd.EpinioClient) *cobra.Command
NewExportRegistriesCmd returns a new 'epinio info' command
func NewGitconfigCmd ¶ added in v1.11.0
func NewGitconfigCmd(client *usercmd.EpinioClient) *cobra.Command
NewGitconfigCmd returns a new 'epinio gitconfig' command
func NewGitconfigCreateCmd ¶ added in v1.11.0
func NewGitconfigCreateCmd(client *usercmd.EpinioClient) *cobra.Command
NewGitconfigCreateCmd returns a new 'epinio gitconfig create' command
func NewGitconfigDeleteCmd ¶ added in v1.11.0
func NewGitconfigDeleteCmd(client *usercmd.EpinioClient) *cobra.Command
NewGitconfigDeleteCmd returns a new 'epinio gitconfig delete' command
func NewGitconfigListCmd ¶ added in v1.11.0
func NewGitconfigListCmd(client *usercmd.EpinioClient) *cobra.Command
NewGitconfigListCmd returns a new 'epinio gitconfig list' command
func NewGitconfigShowCmd ¶ added in v1.11.0
func NewGitconfigShowCmd(client *usercmd.EpinioClient) *cobra.Command
NewGitconfigShowCmd returns a new 'epinio gitconfig delete' command
func NewInfoCmd ¶
func NewInfoCmd(client *usercmd.EpinioClient, rootCfg *RootConfig) *cobra.Command
NewInfoCmd returns a new 'epinio info' command
func NewLoginCmd ¶
func NewLoginCmd(client LoginService) *cobra.Command
NewLoginCmd returns a new 'epinio login' command
func NewLogoutCmd ¶
func NewLogoutCmd(client LoginService) *cobra.Command
NewLogoutCmd returns a new 'epinio logout' command
func NewNamespaceCmd ¶
func NewNamespaceCmd(client NamespaceService, rootCfg *RootConfig) *cobra.Command
NewNamespaceCmd returns a new 'epinio namespace' command
func NewNamespaceCreateCmd ¶
func NewNamespaceCreateCmd(client NamespaceService) *cobra.Command
NewNamespaceCreateCmd returns a new 'epinio namespace create' command
func NewNamespaceDeleteCmd ¶
func NewNamespaceDeleteCmd(client NamespaceService) *cobra.Command
NewNamespaceDeleteCmd returns a new 'epinio namespace delete' command
func NewNamespaceListCmd ¶
func NewNamespaceListCmd(client NamespaceService, rootCfg *RootConfig) *cobra.Command
NewNamespaceListCmd returns a new 'epinio namespace list' command
func NewNamespaceShowCmd ¶
func NewNamespaceShowCmd(client NamespaceService, rootCfg *RootConfig) *cobra.Command
NewNamespaceShowCmd returns a new 'epinio namespace show' command
func NewServiceBindCmd ¶ added in v1.11.0
func NewServiceBindCmd(client ServicesService) *cobra.Command
NewServiceBindCmd returns a new `epinio service bind` command
func NewServiceCatalogCmd ¶ added in v1.11.0
func NewServiceCatalogCmd(client ServicesService) *cobra.Command
NewServiceCatalogCmd returns a new `epinio service catalog` command
func NewServiceCreateCmd ¶ added in v1.11.0
func NewServiceCreateCmd(client ServicesService) *cobra.Command
NewServiceCreateCmd returns a new `epinio service create` command
func NewServiceDeleteCmd ¶ added in v1.11.0
func NewServiceDeleteCmd(client ServicesService) *cobra.Command
NewServiceDeleteCmd returns a new `epinio service delete` command
func NewServiceListCmd ¶ added in v1.11.0
func NewServiceListCmd(client ServicesService, rootCfg *RootConfig) *cobra.Command
NewServiceListCmd returns a new `epinio service list` command
func NewServicePortForwardCmd ¶ added in v1.11.0
func NewServicePortForwardCmd(client ServicesService) *cobra.Command
NewServicePortForwardCmd returns a new `epinio service port-forward` command
func NewServiceShowCmd ¶ added in v1.11.0
func NewServiceShowCmd(client ServicesService, rootCfg *RootConfig) *cobra.Command
NewServiceShowCmd returns a new `epinio service show` command
func NewServiceUnbindCmd ¶ added in v1.11.0
func NewServiceUnbindCmd(client ServicesService) *cobra.Command
NewServiceUnbindCmd returns a new `epinio service unbind` command
func NewServiceUpdateCmd ¶ added in v1.11.0
func NewServiceUpdateCmd(client ServicesService) *cobra.Command
func NewServicesCmd ¶ added in v1.11.0
func NewServicesCmd(client ServicesService, rootCfg *RootConfig) *cobra.Command
NewServicesCmd returns a new 'epinio services' command
func NewSettingsCmd ¶
func NewSettingsCmd(client *usercmd.EpinioClient) *cobra.Command
NewSettingsCmd returns a new 'epinio settings' command
func NewSettingsColorsCmd ¶
func NewSettingsColorsCmd(client *usercmd.EpinioClient) *cobra.Command
NewSettingsColorsCmd returns a new 'epinio settings colors' command
func NewSettingsShowCmd ¶
func NewSettingsShowCmd(client *usercmd.EpinioClient) *cobra.Command
NewSettingsShowCmd returns a new 'epinio settings show' command
func NewSettingsUpdateCACmd ¶
func NewSettingsUpdateCACmd(client *usercmd.EpinioClient) *cobra.Command
NewSettingsUpdateCACmd returns a new 'epinio settings update-ca' command
func NewTargetCmd ¶
func NewTargetCmd(client *usercmd.EpinioClient) *cobra.Command
NewTargetCmd returns a new 'epinio target' command
func NewVersionCmd ¶ added in v1.11.0
NewVersionCmd returns a new 'epinio version' command
Types ¶
type AppChartMatcher ¶ added in v1.11.0
type AppDeleteConfig ¶ added in v1.11.0
type AppDeleteConfig struct {
// contains filtered or unexported fields
}
type AppExecConfig ¶ added in v1.11.0
type AppExecConfig struct {
// contains filtered or unexported fields
}
type AppExportConfig ¶ added in v1.11.0
type AppExportConfig struct {
// contains filtered or unexported fields
}
type AppForwardConfig ¶ added in v1.11.0
type AppForwardConfig struct {
// contains filtered or unexported fields
}
type AppListConfig ¶ added in v1.11.0
type AppListConfig struct {
// contains filtered or unexported fields
}
type AppLogsConfig ¶ added in v1.11.0
type AppLogsConfig struct {
// contains filtered or unexported fields
}
type AppMatcher ¶ added in v1.11.0
type AppRestageConfig ¶ added in v1.11.0
type AppRestageConfig struct {
// contains filtered or unexported fields
}
type AppVarMatcher ¶ added in v1.11.0
type AppchartsService ¶ added in v1.11.0
type AppenvService ¶ added in v1.11.0
type ApplicationsService ¶ added in v1.11.0
type ApplicationsService interface { AppCreate(name string, updateRequest models.ApplicationUpdateRequest) error AppDelete(ctx context.Context, appNames []string, all bool) error AppExec(ctx context.Context, name, instance string) error AppExport(name string, toRegistry bool, exportRequest models.AppExportRequest) error AppLogs(name, stageID string, follow bool) error AppManifest(name, path string) error AppPortForward(ctx context.Context, name, instance string, address, ports []string) error AppPush(ctxt context.Context, manifest models.ApplicationManifest) error AppRestage(name string, restart bool) error AppRestart(name string) error AppShow(name string) error AppStageID(name string) (string, error) AppUpdate(name string, updateRequest models.ApplicationUpdateRequest) error Apps(all bool) error AppMatcher AppChartMatcher RegistryMatcher ConfigurationMatching(toComplete string) []string // --bind // interfaces for the env and chart sub-ensembles AppenvService AppchartsService }
type ChangeConfig ¶
type ChangeConfig struct {
// contains filtered or unexported fields
}
type ChartValueConfig ¶ added in v1.11.0
type ChartValueConfig struct {
// contains filtered or unexported fields
}
type ConfigurationAppMatcher ¶
type ConfigurationCreateConfig ¶
type ConfigurationCreateConfig struct {
// contains filtered or unexported fields
}
type ConfigurationDeleteConfig ¶
type ConfigurationDeleteConfig struct {
// contains filtered or unexported fields
}
type ConfigurationListConfig ¶
type ConfigurationListConfig struct {
// contains filtered or unexported fields
}
type ConfigurationService ¶
type ConfigurationService interface { Configurations(all bool) error ConfigurationDetails(configuration string) error CreateConfiguration(configuration string, kvAssigments []string) error DeleteConfiguration(configurations []string, unbind bool, all bool) error ConfigurationMatching(tocomplete string) []string UpdateConfiguration(configuration string, removedKeys []string, assignments map[string]string) error BindConfiguration(configuration, application string) error UnbindConfiguration(configuration, application string) error ConfigurationAppMatcher }
type EnumValue ¶
EnumValue implements the Value interface It can be used to define a flag with a set of allowed values Ref: - https://github.com/spf13/pflag/blob/2e9d26c8c37aae03e3f9d4e90b7116f5accb7cab/flag.go#L185-L191 - https://github.com/spf13/pflag/issues/236#issuecomment-931600452
func NewEnumValue ¶
NewEnumValue give a list of allowed flag parameters, where the second argument is the default
type EpinioMatcher ¶ added in v1.11.0
type EpinioMatcher struct { ArgLimit int Filter func(oldMatches, newMatches []string) []string Matchers []MatcherFunc }
func NewEpinioMatcher ¶ added in v1.11.0
func NewEpinioMatcher(matchers ...MatcherFunc) *EpinioMatcher
func (*EpinioMatcher) Any ¶ added in v1.11.0
func (m *EpinioMatcher) Any() *EpinioMatcher
Any will not limit the check for the numbers of matchers, but it will loop through them. I.e: with 3 args and 2 matchers the first arg will be checked against the 1st matcher, the 2nd arg with the 2nd matcher, and the 3rd arg again with the first matcher.
func (*EpinioMatcher) FilterMatches ¶ added in v1.11.0
func (m *EpinioMatcher) FilterMatches() *EpinioMatcher
FilterMatches enables the filtering of the already matched suggestions
type FlagCompletionFunc ¶
type FlagCompletionFunc func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
func NewAppChartMatcherValueFunc ¶ added in v1.11.0
func NewAppChartMatcherValueFunc(matcher AppChartMatcher) FlagCompletionFunc
func NewRegistryMatcherValueFunc ¶ added in v1.11.0
func NewRegistryMatcherValueFunc(matcher RegistryMatcher) FlagCompletionFunc
func NewServiceChartValueFunc ¶ added in v1.11.0
func NewServiceChartValueFunc(matcher ServiceChartValueMatcher) FlagCompletionFunc
NewServiceChartValueFunc returns a function returning a list of matching chart value names from the provided partial command.
func NewStaticFlagsCompletionFunc ¶
func NewStaticFlagsCompletionFunc[T ~string](allowedValues []T) FlagCompletionFunc
type GitconfigCreateConfig ¶ added in v1.11.0
type GitconfigCreateConfig struct {
// contains filtered or unexported fields
}
type GitconfigDeleteConfig ¶ added in v1.11.0
type GitconfigDeleteConfig struct {
// contains filtered or unexported fields
}
type GitconfigMatcher ¶ added in v1.11.0
type LoginConfig ¶
type LoginConfig struct {
// contains filtered or unexported fields
}
type LoginService ¶
type MatcherFunc ¶ added in v1.11.0
type NamespaceDeleteConfig ¶
type NamespaceDeleteConfig struct {
// contains filtered or unexported fields
}
type NamespaceService ¶
type RegistryMatcher ¶ added in v1.11.0
type RootConfig ¶
type RootConfig struct {
Output *EnumValue
}
func NewRootConfig ¶
func NewRootConfig() *RootConfig
type ServiceAppMatcher ¶ added in v1.11.0
type ServiceChartValueMatcher ¶ added in v1.11.0
type ServiceCreateConfig ¶ added in v1.11.0
type ServiceCreateConfig struct {
// contains filtered or unexported fields
}
type ServiceDeleteConfig ¶ added in v1.11.0
type ServiceDeleteConfig struct {
// contains filtered or unexported fields
}
type ServiceForwardConfig ¶ added in v1.11.0
type ServiceForwardConfig struct {
// contains filtered or unexported fields
}
type ServiceListConfig ¶ added in v1.11.0
type ServiceListConfig struct {
// contains filtered or unexported fields
}
type ServiceMatcher ¶ added in v1.11.0
type ServiceUpdateConfig ¶ added in v1.11.0
type ServiceUpdateConfig struct {
// contains filtered or unexported fields
}
type ServicesService ¶ added in v1.11.0
type ServicesService interface { ServiceBind(serviceName, appName string) error ServiceCatalog() error ServiceCatalogShow(ctx context.Context, serviceName string) error ServiceCreate(catalogName, serviceName string, wait bool, chartValues models.ChartValueSettings) error ServiceDelete(serviceNames []string, unbind, all bool) error ServiceList() error ServiceListAll() error ServicePortForward(ctx context.Context, serviceName string, address, ports []string) error ServiceShow(serviceName string) error ServiceUnbind(serviceName, appName string) error ServiceUpdate(serviceName string, wait bool, removed []string, assignments map[string]string) error ServiceMatcher ServiceChartValueMatcher ServiceAppMatcher CatalogMatching(toComplete string) []string }
type SettingsShowConfig ¶
type SettingsShowConfig struct {
// contains filtered or unexported fields
}
type ValidArgsFunc ¶
type ValidArgsFunc func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
ValidArgsFunc is a shorthand type for cobra argument validation functions.
func AnyArgsValidator ¶ added in v1.11.0
func AnyArgsValidator(matcher MatcherFunc) ValidArgsFunc
func FirstArgValidator ¶ added in v1.11.0
func FirstArgValidator(matcher MatcherFunc) ValidArgsFunc
func NewAppChartMatcherFirstFunc ¶ added in v1.11.0
func NewAppChartMatcherFirstFunc(matcher AppChartMatcher) ValidArgsFunc
NewAppChartMatcherFirstFunc returns a function returning list of matching app charts from the provided partial command. It only matches for the first command argument.
func NewAppMatcherAnyFunc ¶ added in v1.11.0
func NewAppMatcherAnyFunc(matcher AppMatcher) ValidArgsFunc
NewAppMatcherAnyFunc returns a function returning a list of matching apps from the provided partial command. It matches for all command arguments
func NewAppMatcherFirstFunc ¶ added in v1.11.0
func NewAppMatcherFirstFunc(matcher AppMatcher) ValidArgsFunc
NewAppMatcherFirstFunc returns a function returning list of matching apps from the provided partial command. It only matches for the first command argument.
func NewAppVarMatcherFunc ¶ added in v1.11.0
func NewAppVarMatcherFunc(matcher AppVarMatcher) ValidArgsFunc
NewAppVarMatcherFunc returns a function returning a list of matching configurations and apps from the provided partial command. It matches for the first (configurations) and second arguments (applications)
func NewConfigurationAppMatcherFunc ¶
func NewConfigurationAppMatcherFunc(matcher ConfigurationAppMatcher) ValidArgsFunc
NewConfigurationAppMatcherFunc returns a function returning a list of matching configurations and apps from the provided partial command. It matches for the first (configurations) and second arguments (applications)
func NewEpinioArgValidator ¶ added in v1.11.0
func NewEpinioArgValidator(matcher *EpinioMatcher) ValidArgsFunc
func NewGitconfigMatcherFunc ¶ added in v1.11.0
func NewGitconfigMatcherFunc(matcher GitconfigMatcher) ValidArgsFunc
NewGitconfigMatcherFunc returns a list of matching git configurations from the provided partial command. It only matches for the first command argument.
func NewServiceAppMatcherFunc ¶ added in v1.11.0
func NewServiceAppMatcherFunc(matcher ServiceAppMatcher) ValidArgsFunc
NewServiceAppMatcherFunc returns a function returning a list of matching services and apps from the provided partial command. It matches for the first (services) and second arguments (applications)
func NewServiceMatcherAnyFunc ¶ added in v1.11.0
func NewServiceMatcherAnyFunc(matcher ServiceMatcher) ValidArgsFunc
NewServiceMatcherAnyFunc returns a function returning a list of matching services from the provided partial command. It matches for all command arguments
func NewServiceMatcherFirstFunc ¶ added in v1.11.0
func NewServiceMatcherFirstFunc(matcher ServiceMatcher) ValidArgsFunc
NewServiceMatcherFirstFunc returns a function returning list of matching services from the provided partial command. It only matches for the first command argument.