Documentation ¶
Index ¶
- Constants
- func Apply(source string, opts ApplyOptions) error
- func GetKind(obj map[interface{}]interface{}) string
- func GetLabelVersion(obj map[interface{}]interface{}) string
- func GetName(obj map[interface{}]interface{}) string
- func GetNamespace(obj map[interface{}]interface{}) string
- func InitTenant(config Config, callback Callback, username, usertoken string, ...) error
- func ParseObjects(source string, namespace string) ([]map[interface{}]interface{}, error)
- func Process(source string, variables map[string]string) (string, error)
- func WhoAmI(config Config) (string, error)
- type ApplyOptions
- type ByKind
- type Callback
- type Config
Constants ¶
View Source
const ( FieldKind = "kind" FieldAPIVersion = "apiVersion" FieldObjects = "objects" FieldItems = "items" FieldMetadata = "metadata" FieldLabels = "labels" FieldVersion = "version" FieldNamespace = "namespace" FieldName = "name" FieldResourceVersion = "resourceVersion" ValKindTemplate = "Template" ValKindProjectRequest = "ProjectRequest" ValKindPersistenceVolumeClaim = "PersistentVolumeClaim" ValKindServiceAccount = "ServiceAccount" ValKindList = "List" )
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(source string, opts ApplyOptions) error
Apply a given template structure to a target API
func GetLabelVersion ¶
func GetLabelVersion(obj map[interface{}]interface{}) string
func GetNamespace ¶
func GetNamespace(obj map[interface{}]interface{}) string
func InitTenant ¶
func InitTenant(config Config, callback Callback, username, usertoken string, templateVars map[string]string) error
InitTenant initializes a new tenant in openshift Creates the new x-test|stage|run and x-jenkins|che namespaces and install the required services/routes/deployment configurations to run e.g. Jenkins and Che
func ParseObjects ¶
ParseObjects return a string yaml and return a array of the objects/items from a Template/List kind
Types ¶
type ApplyOptions ¶
ApplyOptions contains options for connecting to the target API
func (*ApplyOptions) WithNamespace ¶
func (a *ApplyOptions) WithNamespace(namespace string) ApplyOptions
type ByKind ¶
type ByKind []map[interface{}]interface{}
ByKind represents a list of Openshift objects sortable by Kind
Click to show internal directories.
Click to hide internal directories.