{"modulePath":"github.com/2lambda123/openshift-origin","version":"v1.5.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nPackage api is the internal version of the API.\n\n## Constants\n\n```go\nconst FutureGroupName = \"template.openshift.io\"\n```\n\n```go\nconst GroupName = \"\"\n```\n\n## Variables\n\n```go\nvar (\n\tSchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)\n\tAddToScheme   = SchemeBuilder.AddToScheme\n)\n```\n\n```go\nvar SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}\n```\nSchemeGroupVersion is group version used to register these objects\n\n## Functions\n\n```go\nfunc AddObjectsToTemplate(template *Template, objects []runtime.Object, targetVersions ...unversioned.GroupVersion) error\n```\nAddObjectsToTemplate adds the objects to the template using the target versions to choose the conversion destination\n\n```go\nfunc DeepCopy_api_Parameter(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_Template(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_TemplateList(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc Kind(kind string) unversioned.GroupKind\n```\nKind takes an unqualified kind and returns back a Group qualified GroupKind\n\n```go\nfunc RegisterDeepCopies(scheme *runtime.Scheme) error\n```\nRegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.\n\n```go\nfunc Resource(resource string) unversioned.GroupResource\n```\nResource takes an unqualified resource and returns back a Group qualified GroupResource\n\n```go\nfunc TemplateToSelectableFields(template *Template) fields.Set\n```\nTemplateToSelectableFields returns a label set that represents the object changes to the returned keys require registering conversions for existing versions using Scheme.AddFieldLabelConversionFunc\n\n## Types\n\n```go\ntype Parameter struct {\n\t// Required: Parameter name must be set and it can be referenced in Template\n\t// Items using ${PARAMETER_NAME}\n\tName string\n\n\t// Optional: The name that will show in UI instead of parameter 'Name'\n\tDisplayName string\n\n\t// Optional: Parameter can have description\n\tDescription string\n\n\t// Optional: Value holds the Parameter data. If specified, the generator\n\t// will be ignored. The value replaces all occurrences of the Parameter\n\t// ${Name} expression during the Template to Config transformation.\n\tValue string\n\n\t// Optional: Generate specifies the generator to be used to generate\n\t// random string from an input value specified by From field. The result\n\t// string is stored into Value field. If empty, no generator is being\n\t// used, leaving the result Value untouched.\n\tGenerate string\n\n\t// Optional: From is an input value for the generator.\n\tFrom string\n\n\t// Optional: Indicates the parameter must have a value.  Defaults to false.\n\tRequired bool\n}\n```\nParameter defines a name/value variable that is to be processed during the Template to Config transformation.\n\n```go\ntype Template struct {\n\tunversioned.TypeMeta\n\tkapi.ObjectMeta\n\n\t// message is an optional instructional message that will\n\t// be displayed when this template is instantiated.\n\t// This field should inform the user how to utilize the newly created resources.\n\t// Parameter substitution will be performed on the message before being\n\t// displayed so that generated credentials and other parameters can be\n\t// included in the output.\n\tMessage string\n\n\t// parameters is an optional array of Parameters used during the\n\t// Template to Config transformation.\n\tParameters []Parameter\n\n\t// objects is an array of resources to include in this template.\n\t// If a namespace value is hardcoded in the object, it will be removed\n\t// during template instantiation, however if the namespace value\n\t// is, or contains, a ${PARAMETER_REFERENCE}, the resolved\n\t// value after parameter substitution will be respected and the object\n\t// will be created in that namespace.\n\tObjects []runtime.Object\n\n\t// objectLabels is an optional set of labels that are applied to every\n\t// object during the Template to Config transformation.\n\tObjectLabels map[string]string\n}\n```\nTemplate contains the inputs needed to produce a Config.\n\n```go\nfunc (obj *Template) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype TemplateList struct {\n\tunversioned.TypeMeta\n\tunversioned.ListMeta\n\tItems []Template\n}\n```\nTemplateList is a list of Template objects.\n\n```go\nfunc (obj *TemplateList) GetObjectKind() unversioned.ObjectKind\n```\n\n","path":"github.com/2lambda123/openshift-origin/pkg/template/api","name":"api","synopsis":"Package api is the internal version of the API.","isRedistributable":true}
