create

package
v4.0.0-0.12.0+incompat... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterQuotaRecommendedName = "clusterresourcequota"
View Source
const IdentityRecommendedName = "identity"
View Source
const ImageStreamRecommendedName = "imagestream"
View Source
const ImageStreamTagRecommendedName = "imagestreamtag"
View Source
const UserIdentityMappingRecommendedName = "useridentitymapping"
View Source
const UserRecommendedName = "user"

Variables

View Source
var DeploymentConfigRecommendedName = "deploymentconfig"

Functions

func NameFromCommandArgs

func NameFromCommandArgs(cmd *cobra.Command, args []string) (string, error)

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 (*CreateClusterQuotaOptions) Run

type CreateDeploymentConfigOptions

type CreateDeploymentConfigOptions struct {
	CreateSubcommandOptions *CreateSubcommandOptions

	Image string
	Args  []string

	Client appsv1client.DeploymentConfigsGetter
}

func (*CreateDeploymentConfigOptions) Complete

func (*CreateDeploymentConfigOptions) Run

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) Complete

func (o *CreateEdgeRouteOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error

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 (*CreateIdentityOptions) Run

func (o *CreateIdentityOptions) Run() error

type CreateImageStreamOptions

type CreateImageStreamOptions struct {
	CreateSubcommandOptions *CreateSubcommandOptions

	LookupLocal bool

	Client imagev1client.ImageStreamsGetter
}

func (*CreateImageStreamOptions) Complete

func (*CreateImageStreamOptions) Run

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 (*CreateImageStreamTagOptions) Run

type CreatePassthroughRouteOptions

type CreatePassthroughRouteOptions struct {
	CreateRouteSubcommandOptions *CreateRouteSubcommandOptions

	Hostname       string
	Port           string
	InsecurePolicy string
	Service        string
	WildcardPolicy string
}

func (*CreatePassthroughRouteOptions) Complete

func (*CreatePassthroughRouteOptions) Run

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) Complete

func (o *CreateReencryptRouteOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error

func (*CreateReencryptRouteOptions) Run

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

func (*CreateRouteSubcommandOptions) Complete

func (o *CreateRouteSubcommandOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error

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

type CreateUserIdentityMappingOptions

type CreateUserIdentityMappingOptions struct {
	CreateSubcommandOptions *CreateSubcommandOptions

	User     string
	Identity string

	UserIdentityMappingClient userv1client.UserIdentityMappingsGetter
}

func (*CreateUserIdentityMappingOptions) Complete

func (*CreateUserIdentityMappingOptions) Run

type CreateUserOptions

type CreateUserOptions struct {
	CreateSubcommandOptions *CreateSubcommandOptions

	FullName string

	UserClient userv1client.UsersGetter
}

func (*CreateUserOptions) Complete

func (*CreateUserOptions) Run

func (o *CreateUserOptions) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL