Documentation
¶
Index ¶
- Constants
- Variables
- func AddToScheme(scheme *runtime.Scheme)
- func Convert_api_Parameter_To_v1_Parameter(in *template_api.Parameter, out *Parameter, s conversion.Scope) error
- func Convert_api_TemplateList_To_v1_TemplateList(in *template_api.TemplateList, out *TemplateList, s conversion.Scope) error
- func Convert_api_Template_To_v1_Template(in *newer.Template, out *Template, s conversion.Scope) error
- func Convert_v1_Parameter_To_api_Parameter(in *Parameter, out *template_api.Parameter, s conversion.Scope) error
- func Convert_v1_TemplateList_To_api_TemplateList(in *TemplateList, out *template_api.TemplateList, s conversion.Scope) error
- func Convert_v1_Template_To_api_Template(in *Template, out *newer.Template, s conversion.Scope) error
- func DeepCopy_v1_Parameter(in Parameter, out *Parameter, c *conversion.Cloner) error
- func DeepCopy_v1_Template(in Template, out *Template, c *conversion.Cloner) error
- func DeepCopy_v1_TemplateList(in TemplateList, out *TemplateList, c *conversion.Cloner) error
- type Parameter
- type Template
- type TemplateList
Constants ¶
View Source
const GroupName = ""
Variables ¶
View Source
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_api_Parameter_To_v1_Parameter ¶ added in v1.3.0
func Convert_api_Parameter_To_v1_Parameter(in *template_api.Parameter, out *Parameter, s conversion.Scope) error
func Convert_api_TemplateList_To_v1_TemplateList ¶ added in v1.3.0
func Convert_api_TemplateList_To_v1_TemplateList(in *template_api.TemplateList, out *TemplateList, s conversion.Scope) error
func Convert_api_Template_To_v1_Template ¶ added in v1.3.0
func Convert_v1_Parameter_To_api_Parameter ¶ added in v1.3.0
func Convert_v1_Parameter_To_api_Parameter(in *Parameter, out *template_api.Parameter, s conversion.Scope) error
func Convert_v1_TemplateList_To_api_TemplateList ¶ added in v1.3.0
func Convert_v1_TemplateList_To_api_TemplateList(in *TemplateList, out *template_api.TemplateList, s conversion.Scope) error
func Convert_v1_Template_To_api_Template ¶ added in v1.3.0
func DeepCopy_v1_Parameter ¶ added in v1.3.0
func DeepCopy_v1_Parameter(in Parameter, out *Parameter, c *conversion.Cloner) error
func DeepCopy_v1_Template ¶ added in v1.3.0
func DeepCopy_v1_Template(in Template, out *Template, c *conversion.Cloner) error
func DeepCopy_v1_TemplateList ¶ added in v1.3.0
func DeepCopy_v1_TemplateList(in TemplateList, out *TemplateList, c *conversion.Cloner) error
Types ¶
type Parameter ¶
type Parameter struct {
// Name must be set and it can be referenced in Template
// Items using ${PARAMETER_NAME}. Required.
Name string `json:"name"`
// Optional: The name that will show in UI instead of parameter 'Name'
DisplayName string `json:"displayName,omitempty"`
// Description of a parameter. Optional.
Description string `json:"description,omitempty"`
// Value holds the Parameter data. If specified, the generator will be
// ignored. The value replaces all occurrences of the Parameter ${Name}
// expression during the Template to Config transformation. Optional.
Value string `json:"value,omitempty"`
// generate specifies the generator to be used to generate random string
// from an input value specified by From field. The result string is
// stored into Value field. If empty, no generator is being used, leaving
// the result Value untouched. Optional.
//
// The only supported generator is "expression", which accepts a "from"
// value in the form of a simple regular expression containing the
// range expression "[a-zA-Z0-9]", and the length expression "a{length}".
//
// Examples:
//
// from | value
// -----------------------------
// "test[0-9]{1}x" | "test7x"
// "[0-1]{8}" | "01001100"
// "0x[A-F0-9]{4}" | "0xB3AF"
// "[a-zA-Z0-9]{8}" | "hW4yQU5i"
//
Generate string `json:"generate,omitempty"`
// From is an input value for the generator. Optional.
From string `json:"from,omitempty"`
// Optional: Indicates the parameter must have a value. Defaults to false.
Required bool `json:"required,omitempty"`
}
Parameter defines a name/value variable that is to be processed during the Template to Config transformation.
type Template ¶
type Template struct {
unversioned.TypeMeta `json:",inline"`
// Standard object's metadata.
kapi.ObjectMeta `json:"metadata,omitempty"`
// Objects is an array of objects to include in this template. Required.
Objects []runtime.RawExtension `json:"objects"`
// Optional: Parameters is an array of Parameters used during the
// Template to Config transformation.
Parameters []Parameter `json:"parameters,omitempty"`
// Labels is a set of labels that are applied to every
// object during the Template to Config transformation. Optional
Labels map[string]string `json:"labels,omitempty"`
}
Template contains the inputs needed to produce a Config.
func (*Template) GetObjectKind ¶ added in v1.1.4
func (obj *Template) GetObjectKind() unversioned.ObjectKind
type TemplateList ¶
type TemplateList struct {
unversioned.TypeMeta `json:",inline"`
// Standard object's metadata.
unversioned.ListMeta `json:"metadata,omitempty"`
// Items is a list of templates
Items []Template `json:"items"`
}
TemplateList is a list of Template objects.
func (*TemplateList) GetObjectKind ¶ added in v1.1.4
func (obj *TemplateList) GetObjectKind() unversioned.ObjectKind
func (TemplateList) SwaggerDoc ¶ added in v1.1.4
func (TemplateList) SwaggerDoc() map[string]string
Source Files
¶
- conversion.go
- conversion_generated.go
- deep_copy_generated.go
- register.go
- swagger_doc.go
- types.go
Click to show internal directories.
Click to hide internal directories.