{"modulePath":"github.com/2lambda123/openshift-origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package create\n\n## Constants\n\n```go\nconst ClusterQuotaRecommendedName = \"clusterresourcequota\"\n```\n\n```go\nconst IdentityRecommendedName = \"identity\"\n```\n\n```go\nconst ImageStreamRecommendedName = \"imagestream\"\n```\n\n```go\nconst ImageStreamTagRecommendedName = \"imagestreamtag\"\n```\n\n```go\nconst UserIdentityMappingRecommendedName = \"useridentitymapping\"\n```\n\n```go\nconst UserRecommendedName = \"user\"\n```\n\n## Variables\n\n```go\nvar DeploymentConfigRecommendedName = \"deploymentconfig\"\n```\n\n## Functions\n\n```go\nfunc NameFromCommandArgs(cmd *cobra.Command, args []string) (string, error)\n```\nNameFromCommandArgs is a utility function for commands that assume the first argument is a resource name\n\n```go\nfunc NewCmdCreateClusterQuota(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdCreateClusterQuota is a macro command to create a new cluster quota.\n\n```go\nfunc NewCmdCreateDeploymentConfig(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdCreateDeploymentConfig is a macro command to create a new deployment config.\n\n```go\nfunc NewCmdCreateEdgeRoute(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdCreateEdgeRoute is a macro command to create an edge route.\n\n```go\nfunc NewCmdCreateIdentity(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdCreateIdentity is a macro command to create a new identity\n\n```go\nfunc NewCmdCreateImageStream(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdCreateImageStream is a macro command to create a new image stream\n\n```go\nfunc NewCmdCreateImageStreamTag(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdCreateImageStreamTag is a command to create a new image stream tag.\n\n```go\nfunc NewCmdCreatePassthroughRoute(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdCreatePassthroughRoute is a macro command to create a passthrough route.\n\n```go\nfunc NewCmdCreateReencryptRoute(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdCreateReencryptRoute is a macro command to create a reencrypt route.\n\n```go\nfunc NewCmdCreateRoute(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdCreateRoute is a macro command to create a secured route.\n\n```go\nfunc NewCmdCreateUser(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdCreateUser is a macro command to create a new user\n\n```go\nfunc NewCmdCreateUserIdentityMapping(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdCreateUserIdentityMapping is a macro command to create a new identity\n\n## Types\n\n```go\ntype CreateClusterQuotaOptions struct {\n\tCreateSubcommandOptions *CreateSubcommandOptions\n\n\tLabelSelectorStr      string\n\tAnnotationSelectorStr string\n\tHard                  []string\n\n\tProjectLabelSelectorStr      *metav1.LabelSelector\n\tProjectAnnotationSelectorStr map[string]string\n\n\tClient quotav1client.ClusterResourceQuotasGetter\n}\n```\n\n```go\nfunc NewCreateClusterQuotaOptions(streams genericclioptions.IOStreams) *CreateClusterQuotaOptions\n```\n\n```go\nfunc (o *CreateClusterQuotaOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error\n```\n\n```go\nfunc (o *CreateClusterQuotaOptions) Run() error\n```\n\n```go\ntype CreateDeploymentConfigOptions struct {\n\tCreateSubcommandOptions *CreateSubcommandOptions\n\n\tImage string\n\tArgs  []string\n\n\tClient appsv1client.DeploymentConfigsGetter\n}\n```\n\n```go\nfunc (o *CreateDeploymentConfigOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error\n```\n\n```go\nfunc (o *CreateDeploymentConfigOptions) Run() error\n```\n\n```go\ntype CreateEdgeRouteOptions struct {\n\tCreateRouteSubcommandOptions *CreateRouteSubcommandOptions\n\n\tHostname       string\n\tPort           string\n\tInsecurePolicy string\n\tService        string\n\tPath           string\n\tCert           string\n\tKey            string\n\tCACert         string\n\tWildcardPolicy string\n}\n```\n\n```go\nfunc (o *CreateEdgeRouteOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error\n```\n\n```go\nfunc (o *CreateEdgeRouteOptions) Run() error\n```\n\n```go\ntype CreateIdentityOptions struct {\n\tCreateSubcommandOptions *CreateSubcommandOptions\n\n\tProviderName     string\n\tProviderUserName string\n\n\tIdentityClient userv1client.IdentitiesGetter\n}\n```\n\n```go\nfunc (o *CreateIdentityOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error\n```\n\n```go\nfunc (o *CreateIdentityOptions) Run() error\n```\n\n```go\ntype CreateImageStreamOptions struct {\n\tCreateSubcommandOptions *CreateSubcommandOptions\n\n\tLookupLocal bool\n\n\tClient imagev1client.ImageStreamsGetter\n}\n```\n\n```go\nfunc (o *CreateImageStreamOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error\n```\n\n```go\nfunc (o *CreateImageStreamOptions) Run() error\n```\n\n```go\ntype CreateImageStreamTagOptions struct {\n\tCreateSubcommandOptions *CreateSubcommandOptions\n\n\tClient imagev1client.ImageStreamTagsGetter\n\n\tFromImage          string\n\tFrom               string\n\tAnnotations        []string\n\tScheduled          bool\n\tInsecure           bool\n\tReference          bool\n\tReferencePolicyStr string\n\tReferencePolicy    imagev1.TagReferencePolicyType\n}\n```\n\n```go\nfunc (o *CreateImageStreamTagOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error\n```\n\n```go\nfunc (o *CreateImageStreamTagOptions) Run() error\n```\n\n```go\ntype CreatePassthroughRouteOptions struct {\n\tCreateRouteSubcommandOptions *CreateRouteSubcommandOptions\n\n\tHostname       string\n\tPort           string\n\tInsecurePolicy string\n\tService        string\n\tWildcardPolicy string\n}\n```\n\n```go\nfunc (o *CreatePassthroughRouteOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error\n```\n\n```go\nfunc (o *CreatePassthroughRouteOptions) Run() error\n```\n\n```go\ntype CreateReencryptRouteOptions struct {\n\tCreateRouteSubcommandOptions *CreateRouteSubcommandOptions\n\n\tHostname       string\n\tPort           string\n\tInsecurePolicy string\n\tService        string\n\tPath           string\n\tCert           string\n\tKey            string\n\tCACert         string\n\tDestCACert     string\n\tWildcardPolicy string\n}\n```\n\n```go\nfunc (o *CreateReencryptRouteOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error\n```\n\n```go\nfunc (o *CreateReencryptRouteOptions) Run() error\n```\n\n```go\ntype CreateRouteSubcommandOptions struct {\n\t// PrintFlags holds options necessary for obtaining a printer\n\tPrintFlags *genericclioptions.PrintFlags\n\t// Name of resource being created\n\tName        string\n\tServiceName string\n\t// DryRun is true if the command should be simulated but not run against the server\n\tDryRun bool\n\n\tNamespace        string\n\tEnforceNamespace bool\n\n\tMapper meta.RESTMapper\n\n\tPrinter printers.ResourcePrinter\n\n\tClient     routev1client.RoutesGetter\n\tCoreClient corev1client.CoreV1Interface\n\n\tgenericclioptions.IOStreams\n}\n```\nCreateRouteSubcommandOptions is an options struct to support create subcommands\n\n```go\nfunc NewCreateRouteSubcommandOptions(ioStreams genericclioptions.IOStreams) *CreateRouteSubcommandOptions\n```\n\n```go\nfunc (o *CreateRouteSubcommandOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error\n```\n\n```go\ntype CreateSubcommandOptions struct {\n\tgenericclioptions.IOStreams\n\n\t// PrintFlags holds options necessary for obtaining a printer\n\tPrintFlags *genericclioptions.PrintFlags\n\t// Name of resource being created\n\tName string\n\t// DryRun is true if the command should be simulated but not run against the server\n\tDryRun bool\n\n\tNamespace        string\n\tEnforceNamespace bool\n\n\tPrinter printers.ResourcePrinter\n}\n```\nCreateSubcommandOptions is an options struct to support create subcommands\n\n```go\nfunc NewCreateSubcommandOptions(ioStreams genericclioptions.IOStreams) *CreateSubcommandOptions\n```\n\n```go\nfunc (o *CreateSubcommandOptions) Complete(f genericclioptions.RESTClientGetter, cmd *cobra.Command, args []string) error\n```\n\n```go\ntype CreateUserIdentityMappingOptions struct {\n\tCreateSubcommandOptions *CreateSubcommandOptions\n\n\tUser     string\n\tIdentity string\n\n\tUserIdentityMappingClient userv1client.UserIdentityMappingsGetter\n}\n```\n\n```go\nfunc NewCreateUserIdentityMappingOptions(streams genericclioptions.IOStreams) *CreateUserIdentityMappingOptions\n```\n\n```go\nfunc (o *CreateUserIdentityMappingOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error\n```\n\n```go\nfunc (o *CreateUserIdentityMappingOptions) Run() error\n```\n\n```go\ntype CreateUserOptions struct {\n\tCreateSubcommandOptions *CreateSubcommandOptions\n\n\tFullName string\n\n\tUserClient userv1client.UsersGetter\n}\n```\n\n```go\nfunc (o *CreateUserOptions) Complete(cmd *cobra.Command, f genericclioptions.RESTClientGetter, args []string) error\n```\n\n```go\nfunc (o *CreateUserOptions) Run() error\n```\n\n","path":"github.com/2lambda123/openshift-origin/pkg/oc/cli/create","name":"create","synopsis":"","isRedistributable":true}
