Documentation ¶
Index ¶
- Constants
- Variables
- func NameFromCommandArgs(args []string) (string, error)
- func NewCmdCreateClusterQuota(name, fullName string, f genericclioptions.RESTClientGetter, ...) *cobra.Command
- func NewCmdCreateDeploymentConfig(name, fullName string, f genericclioptions.RESTClientGetter, ...) *cobra.Command
- func NewCmdCreateEdgeRoute(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateIdentity(name, fullName string, f genericclioptions.RESTClientGetter, ...) *cobra.Command
- func NewCmdCreateImageStream(name, fullName string, f genericclioptions.RESTClientGetter, ...) *cobra.Command
- func NewCmdCreateImageStreamTag(name, fullName string, f genericclioptions.RESTClientGetter, ...) *cobra.Command
- func NewCmdCreatePassthroughRoute(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateReencryptRoute(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateRoute(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdCreateUser(name, fullName string, f genericclioptions.RESTClientGetter, ...) *cobra.Command
- func NewCmdCreateUserIdentityMapping(name, fullName string, f genericclioptions.RESTClientGetter, ...) *cobra.Command
- type CreateClusterQuotaOptions
- type CreateDeploymentConfigOptions
- type CreateEdgeRouteOptions
- type CreateIdentityOptions
- type CreateImageStreamOptions
- type CreateImageStreamTagOptions
- type CreatePassthroughRouteOptions
- type CreateReencryptRouteOptions
- type CreateRouteSubcommandOptions
- type CreateSubcommandOptions
- type CreateUserIdentityMappingOptions
- type CreateUserOptions
Constants ¶
const ClusterQuotaRecommendedName = "clusterresourcequota"
const IdentityRecommendedName = "identity"
const ImageStreamRecommendedName = "imagestream"
const ImageStreamTagRecommendedName = "imagestreamtag"
const UserIdentityMappingRecommendedName = "useridentitymapping"
const UserRecommendedName = "user"
Variables ¶
var DeploymentConfigRecommendedName = "deploymentconfig"
Functions ¶
func NameFromCommandArgs ¶
NameFromCommandArgs is a utility function for commands that assume the first argument is a resource name
func NewCmdCreateClusterQuota ¶
func NewCmdCreateClusterQuota(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateClusterQuota is a macro command to create a new cluster quota.
func NewCmdCreateDeploymentConfig ¶
func NewCmdCreateDeploymentConfig(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateDeploymentConfig is a macro command to create a new deployment config.
func NewCmdCreateEdgeRoute ¶
func NewCmdCreateEdgeRoute(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateEdgeRoute is a macro command to create an edge route.
func NewCmdCreateIdentity ¶
func NewCmdCreateIdentity(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateIdentity is a macro command to create a new identity
func NewCmdCreateImageStream ¶
func NewCmdCreateImageStream(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateImageStream is a macro command to create a new image stream
func NewCmdCreateImageStreamTag ¶
func NewCmdCreateImageStreamTag(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateImageStreamTag is a command to create a new image stream tag.
func NewCmdCreatePassthroughRoute ¶
func NewCmdCreatePassthroughRoute(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
NewCmdCreatePassthroughRoute is a macro command to create a passthrough route.
func NewCmdCreateReencryptRoute ¶
func NewCmdCreateReencryptRoute(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateReencryptRoute is a macro command to create a reencrypt route.
func NewCmdCreateRoute ¶
func NewCmdCreateRoute(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateRoute is a macro command to create a secured route.
func NewCmdCreateUser ¶
func NewCmdCreateUser(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateUser is a macro command to create a new user
func NewCmdCreateUserIdentityMapping ¶
func NewCmdCreateUserIdentityMapping(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command
NewCmdCreateUserIdentityMapping is a macro command to create a new identity
Types ¶
type CreateClusterQuotaOptions ¶
type CreateClusterQuotaOptions struct { CreateSubcommandOptions *CreateSubcommandOptions LabelSelectorStr string AnnotationSelectorStr string Hard []string ProjectLabelSelectorStr *metav1.LabelSelector ProjectAnnotationSelectorStr map[string]string Client quotav1client.ClusterResourceQuotasGetter }
func NewCreateClusterQuotaOptions ¶
func NewCreateClusterQuotaOptions(streams genericclioptions.IOStreams) *CreateClusterQuotaOptions
func (*CreateClusterQuotaOptions) Complete ¶
func (o *CreateClusterQuotaOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error
func (*CreateClusterQuotaOptions) Run ¶
func (o *CreateClusterQuotaOptions) Run() error
type CreateDeploymentConfigOptions ¶
type CreateDeploymentConfigOptions struct { CreateSubcommandOptions *CreateSubcommandOptions Image string Args []string Client appsv1client.DeploymentConfigsGetter }
func (*CreateDeploymentConfigOptions) Complete ¶
func (o *CreateDeploymentConfigOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error
func (*CreateDeploymentConfigOptions) Run ¶
func (o *CreateDeploymentConfigOptions) Run() error
type CreateEdgeRouteOptions ¶
type CreateEdgeRouteOptions struct { CreateRouteSubcommandOptions *CreateRouteSubcommandOptions Hostname string Port string InsecurePolicy string Service string Path string Cert string Key string CACert string WildcardPolicy string }
func (*CreateEdgeRouteOptions) Run ¶
func (o *CreateEdgeRouteOptions) Run() error
type CreateIdentityOptions ¶
type CreateIdentityOptions struct { CreateSubcommandOptions *CreateSubcommandOptions ProviderName string ProviderUserName string IdentityClient userv1client.IdentitiesGetter }
func (*CreateIdentityOptions) Complete ¶
func (o *CreateIdentityOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error
func (*CreateIdentityOptions) Run ¶
func (o *CreateIdentityOptions) Run() error
type CreateImageStreamOptions ¶
type CreateImageStreamOptions struct { CreateSubcommandOptions *CreateSubcommandOptions LookupLocal bool Client imagev1client.ImageStreamsGetter }
func (*CreateImageStreamOptions) Complete ¶
func (o *CreateImageStreamOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error
func (*CreateImageStreamOptions) Run ¶
func (o *CreateImageStreamOptions) Run() error
type CreateImageStreamTagOptions ¶
type CreateImageStreamTagOptions struct { CreateSubcommandOptions *CreateSubcommandOptions Client imagev1client.ImageStreamTagsGetter FromImage string From string Annotations []string Scheduled bool Insecure bool Reference bool ReferencePolicyStr string ReferencePolicy imagev1.TagReferencePolicyType }
func (*CreateImageStreamTagOptions) Complete ¶
func (o *CreateImageStreamTagOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error
func (*CreateImageStreamTagOptions) Run ¶
func (o *CreateImageStreamTagOptions) Run() error
type CreatePassthroughRouteOptions ¶
type CreatePassthroughRouteOptions struct { CreateRouteSubcommandOptions *CreateRouteSubcommandOptions Hostname string Port string InsecurePolicy string Service string WildcardPolicy string }
func (*CreatePassthroughRouteOptions) Run ¶
func (o *CreatePassthroughRouteOptions) Run() error
type CreateReencryptRouteOptions ¶
type CreateReencryptRouteOptions struct { CreateRouteSubcommandOptions *CreateRouteSubcommandOptions Hostname string Port string InsecurePolicy string Service string Path string Cert string Key string CACert string DestCACert string WildcardPolicy string }
func (*CreateReencryptRouteOptions) Run ¶
func (o *CreateReencryptRouteOptions) Run() error
type CreateRouteSubcommandOptions ¶
type CreateRouteSubcommandOptions struct { // PrintFlags holds options necessary for obtaining a printer PrintFlags *genericclioptions.PrintFlags // Name of resource being created Name string ServiceName string // DryRun is true if the command should be simulated but not run against the server DryRun bool Namespace string EnforceNamespace bool Mapper meta.RESTMapper Printer printers.ResourcePrinter Client routev1client.RoutesGetter CoreClient corev1client.CoreV1Interface genericclioptions.IOStreams }
CreateRouteSubcommandOptions is an options struct to support create subcommands
func NewCreateRouteSubcommandOptions ¶
func NewCreateRouteSubcommandOptions(ioStreams genericclioptions.IOStreams) *CreateRouteSubcommandOptions
type CreateSubcommandOptions ¶
type CreateSubcommandOptions struct { genericclioptions.IOStreams // PrintFlags holds options necessary for obtaining a printer PrintFlags *genericclioptions.PrintFlags // Name of resource being created Name string // DryRun is true if the command should be simulated but not run against the server DryRun bool Namespace string EnforceNamespace bool Printer printers.ResourcePrinter }
CreateSubcommandOptions is an options struct to support create subcommands
func NewCreateSubcommandOptions ¶
func NewCreateSubcommandOptions(ioStreams genericclioptions.IOStreams) *CreateSubcommandOptions
func (*CreateSubcommandOptions) Complete ¶
func (o *CreateSubcommandOptions) Complete(f genericclioptions.RESTClientGetter, cmd *cobra.Command, args []string) error
type CreateUserIdentityMappingOptions ¶
type CreateUserIdentityMappingOptions struct { CreateSubcommandOptions *CreateSubcommandOptions User string Identity string UserIdentityMappingClient userv1client.UserIdentityMappingsGetter }
func NewCreateUserIdentityMappingOptions ¶
func NewCreateUserIdentityMappingOptions(streams genericclioptions.IOStreams) *CreateUserIdentityMappingOptions
func (*CreateUserIdentityMappingOptions) Complete ¶
func (o *CreateUserIdentityMappingOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error
func (*CreateUserIdentityMappingOptions) Run ¶
func (o *CreateUserIdentityMappingOptions) Run() error
type CreateUserOptions ¶
type CreateUserOptions struct { CreateSubcommandOptions *CreateSubcommandOptions FullName string UserClient userv1client.UsersGetter }
func (*CreateUserOptions) Complete ¶
func (o *CreateUserOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error
func (*CreateUserOptions) Run ¶
func (o *CreateUserOptions) Run() error