Documentation ¶
Index ¶
- Constants
- Variables
- func CollectVars(osUsername, nsBaseName, masterUser string, config *configuration.Data) map[string]string
- func GetKind(obj Object) string
- func GetLabel(obj Object, name string) string
- func GetLabelVersion(obj Object) string
- func GetName(obj Object) string
- func GetNamespace(obj Object) string
- func HasValidStatus(obj Object) bool
- func RetrieveMappedTemplates() map[Type]Templates
- func RetrieveUserName(openshiftUsername string) string
- type ByKind
- type EnvData
- type Object
- type Objects
- type Service
- type Template
- type Templates
- type Type
Constants ¶
View Source
const ( FieldKind = "kind" FieldObjects = "objects" FieldSpec = "spec" FieldItems = "items" FieldMetadata = "metadata" FieldLabels = "labels" FieldVersion = "version" FieldVersionQuotas = "version-quotas" FieldNamespace = "namespace" FieldName = "name" FieldStatus = "status" FieldParameters = "parameters" ValKindTemplate = "Template" ValKindNamespace = "Namespace" ValKindConfigMap = "ConfigMap" ValKindLimitRange = "LimitRange" ValKindProject = "Project" ValKindProjectRequest = "ProjectRequest" ValKindPersistentVolumeClaim = "PersistentVolumeClaim" ValKindService = "Service" ValKindSecret = "Secret" ValKindServiceAccount = "ServiceAccount" ValKindRoleBindingRestriction = "RoleBindingRestriction" ValKindRoleBinding = "RoleBinding" ValKindRole = "Role" ValKindRoute = "Route" ValKindJob = "Job" ValKindList = "List" ValKindDeployment = "Deployment" ValKindDeploymentConfig = "DeploymentConfig" ValKindResourceQuota = "ResourceQuota" ValKindPod = "Pod" ValKindReplicationController = "ReplicationController" ValKindDaemonSet = "DaemonSet" ValKindReplicaSet = "ReplicaSet" ValKindStatefulSet = "StatefulSet" ValKindHorizontalPodAutoScaler = "HorizontalPodAutoScaler" ValKindCronJob = "CronJob" ValKindBuildConfig = "BuildConfig" ValKindBuild = "Build" ValKindImageStream = "ImageStream" )
Variables ¶
View Source
var ( VersionFabric8TenantUserFile string VersionFabric8TenantCheMtFile string VersionFabric8TenantJenkinsFile string VersionFabric8TenantJenkinsQuotasFile string VersionFabric8TenantCheQuotasFile string VersionFabric8TenantDeployFile string DefaultEnvTypes = []Type{TypeChe, TypeUser} )
View Source
var (
OnlyNumbers = regexp.MustCompile("^[0-9]*$")
)
Functions ¶
func CollectVars ¶
func CollectVars(osUsername, nsBaseName, masterUser string, config *configuration.Data) map[string]string
func GetLabelVersion ¶
func GetNamespace ¶
func HasValidStatus ¶
func RetrieveMappedTemplates ¶
func RetrieveUserName ¶
RetrieveUserName returns a safe namespace basename based on a username
Types ¶
type Objects ¶
type Objects []Object
func ParseObjects ¶
ParseObjects return a string yaml and return a array of the objects/items from a Template/List kind
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *Service
func NewServiceForUserData ¶
func NewServiceForUserData(user *authclient.UserDataAttributes) *Service
type Template ¶
Click to show internal directories.
Click to hide internal directories.