Documentation
¶
Index ¶
- func ConvertKeyValueSliceToMap(keyValueSlice []types.KeyValue) map[string]string
- func CreateTestCNAMERecord(dynClient runtimeClient.WithWatch, name, cappName, cappNSName, hostname string, ...)
- func CreateTestCNAMERecordWithoutConditions(dynClient runtimeClient.WithWatch, name, cappName, cappNSName, hostname string)
- func CreateTestCapp(dynClient runtimeClient.WithWatch, name, namespace, domain, site string, ...)
- func CreateTestCappRevision(dynClient runtimeClient.WithWatch, name, namespace, site string, ...)
- func CreateTestCappWithHostname(dynClient runtimeClient.WithWatch, name, namespace, hostname, domain string, ...)
- func CreateTestCappWithState(dynClient runtimeClient.WithWatch, name, namespace, state, site string, ...)
- func CreateTestConfigMap(fakeClient *fake.Clientset, name, namespace string)
- func CreateTestNamespace(fakeClient *fake.Clientset, name string)
- func CreateTestPlacement(dynClient runtimeClient.WithWatch, name, namespace string, ...)
- func CreateTestPod(fakeClient *fake.Clientset, namespace, name, cappName string, ...)
- func CreateTestRoleBinding(fakeClient *fake.Clientset, name, namespace, role string)
- func CreateTestSecret(fakeClient *fake.Clientset, name, namespace string)
- func CreateTestServiceAccount(fakeClient *fake.Clientset, namespace, name string, dockerCfgSecretName string)
- func CreateTestServiceAccountWithToken(fakeClient *fake.Clientset, ...)
- func GinContext() *gin.Context
- func PrepareCapp(name, namespace, domain, site string, labels, annotations map[string]string) cappv1alpha1.Capp
- func PrepareCappMetadata(name, namespace string) types.Metadata
- func PrepareCappRevision(name, namespace, site string, labels, annotations map[string]string) cappv1alpha1.CappRevision
- func PrepareCappRevisionSpec(site string, labels, annotations map[string]string) cappv1alpha1.CappRevisionSpec
- func PrepareCappRevisionStatus() cappv1alpha1.CappRevisionStatus
- func PrepareCappSpec(site string) cappv1alpha1.CappSpec
- func PrepareCappSpecWithHostname(hostname, domain string) cappv1alpha1.CappSpec
- func PrepareCappSpecWithState(state, site string) cappv1alpha1.CappSpec
- func PrepareCappStatus(name, namespace, domain string) cappv1alpha1.CappStatus
- func PrepareCappStatusWithHostname(name, namespace, hostname, domain string) cappv1alpha1.CappStatus
- func PrepareCappStatusWithKnativeObject(name string, state string) cappv1alpha1.CappStatus
- func PrepareCappSummary(name string, namespace string) types.CappSummary
- func PrepareCappWithHostname(name, namespace, hostname, domain string, ...) cappv1alpha1.Capp
- func PrepareCappWithKnativeObject(name, namespace, state, site string, labels, annotations map[string]string) cappv1alpha1.Capp
- func PrepareCappWithState(name, namespace, state, site string, labels, annotations map[string]string) cappv1alpha1.Capp
- func PrepareClusterRoleBinding(username, clusterRoleName string) rbacv1.ClusterRoleBinding
- func PrepareConfigMap(name, namespace string, data map[string]string) corev1.ConfigMap
- func PrepareCreateCappType(name, site string, labels, annotations []types.KeyValue) types.CreateCapp
- func PrepareCreateSecretRequestType(name, secretType, cert, key string, data []types.KeyValue) types.CreateSecretRequest
- func PrepareDockerConfigSecret(name, namespace, serviceAccountTokenSecretName string) corev1.Secret
- func PrepareHTPasswdIdentityProvider(providerName string, providerType configv1.IdentityProviderType, ...) configv1.IdentityProvider
- func PrepareHTPasswdProvider(secretName string) configv1.HTPasswdIdentityProvider
- func PrepareIdentity(providerName, username string) userv1.Identity
- func PrepareNamespace(name string, labels map[string]string) corev1.Namespace
- func PrepareNamespaceType(name string) types.Namespace
- func PreparePlacement(name, namespace string, labels map[string]string) clusterv1beta1.Placement
- func PreparePod(namespace, podName, cappName string, isMultipleContainers bool) *corev1.Pod
- func PrepareRoleBinding(name, namespace, role string) rbacv1.RoleBinding
- func PrepareSecret(name, namespace, dataKey, dataValue string) corev1.Secret
- func PrepareSecretRequestType(data []types.KeyValue) types.UpdateSecretRequest
- func PrepareServiceAccount(name, namespace string, dockerCfgSecretName string) *corev1.ServiceAccount
- func PrepareTokenSecret(name, namespace, tokenValue, serviceAccountName string) corev1.Secret
- func PrepareUpdateCappStateType(state string) types.CappState
- func PrepareUpdateCappType(site string, labels, annotations []types.KeyValue) types.UpdateCapp
- func PrepareUpdateUserDataType(role string) types.UpdateUserData
- func PrepareUser(username string) userv1.User
- func PrepareUserType(name, role string) types.User
- func SetPaginationValues(c *gin.Context, limit, page int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestCNAMERecord ¶
func CreateTestCNAMERecord(dynClient runtimeClient.WithWatch, name, cappName, cappNSName, hostname string, readyStatus, syncedStatus corev1.ConditionStatus)
CreateTestCNAMERecord creates a test CNAME record
func CreateTestCNAMERecordWithoutConditions ¶
func CreateTestCNAMERecordWithoutConditions(dynClient runtimeClient.WithWatch, name, cappName, cappNSName, hostname string)
CreateTestCNAMERecordWithoutConditions creates a test CNAME record without conditions
func CreateTestCapp ¶
func CreateTestCapp(dynClient runtimeClient.WithWatch, name, namespace, domain, site string, labels, annotations map[string]string)
CreateTestCapp creates a test Capp object.
func CreateTestCappRevision ¶
func CreateTestCappRevision(dynClient runtimeClient.WithWatch, name, namespace, site string, labels, annotations map[string]string)
CreateTestCappRevision creates a test CappRevision object.
func CreateTestCappWithHostname ¶
func CreateTestCappWithHostname(dynClient runtimeClient.WithWatch, name, namespace, hostname, domain string, labels, annotations map[string]string)
CreateTestCappWithHostname creates a test Capp object with hostname.
func CreateTestCappWithState ¶
func CreateTestCappWithState(dynClient runtimeClient.WithWatch, name, namespace, state, site string, labels, annotations map[string]string)
CreateTestCappWithState creates a test Capp object with given state.
func CreateTestConfigMap ¶
CreateTestConfigMap creates a test ConfigMap object.
func CreateTestNamespace ¶
CreateTestNamespace creates a test Namespace object.
func CreateTestPlacement ¶
func CreateTestPlacement(dynClient runtimeClient.WithWatch, name, namespace string, labels map[string]string)
CreateTestPlacement creates a test Placement object.
func CreateTestPod ¶
func CreateTestPod(fakeClient *fake.Clientset, namespace, name, cappName string, isMultipleContainers bool)
CreateTestPod creates a test Pod object.
func CreateTestRoleBinding ¶
CreateTestRoleBinding creates a test RoleBinding object.
func CreateTestSecret ¶
CreateTestSecret creates a test Secret object.
func CreateTestServiceAccount ¶
func CreateTestServiceAccount(fakeClient *fake.Clientset, namespace, name string, dockerCfgSecretName string)
CreateTestServiceAccount creates a test service account
func CreateTestServiceAccountWithToken ¶
func CreateTestServiceAccountWithToken(fakeClient *fake.Clientset, namespace, serviceAccountName, tokenSecretName, tokenValue, dockerCfgSecretName string)
CreateTestServiceAccountWithToken creates a test service account
func GinContext ¶
GinContext creates a new *gin.Context for testing purposes
func PrepareCapp ¶
func PrepareCapp(name, namespace, domain, site string, labels, annotations map[string]string) cappv1alpha1.Capp
PrepareCapp returns a mock Capp object.
func PrepareCappMetadata ¶
PrepareCappMetadata returns a CappMetadata object.
func PrepareCappRevision ¶
func PrepareCappRevision(name, namespace, site string, labels, annotations map[string]string) cappv1alpha1.CappRevision
PrepareCappRevision returns a mock CappRevision object.
func PrepareCappRevisionSpec ¶
func PrepareCappRevisionSpec(site string, labels, annotations map[string]string) cappv1alpha1.CappRevisionSpec
PrepareCappRevisionSpec returns a mock CappRevision Spec object.
func PrepareCappRevisionStatus ¶
func PrepareCappRevisionStatus() cappv1alpha1.CappRevisionStatus
PrepareCappRevisionStatus returns a mock CappRevision Status object.
func PrepareCappSpec ¶
func PrepareCappSpec(site string) cappv1alpha1.CappSpec
PrepareCappSpec returns a mock Capp spec.
func PrepareCappSpecWithHostname ¶
func PrepareCappSpecWithHostname(hostname, domain string) cappv1alpha1.CappSpec
PrepareCappSpecWithHostname returns a mock Capp spec with Hostname set.
func PrepareCappSpecWithState ¶
func PrepareCappSpecWithState(state, site string) cappv1alpha1.CappSpec
PrepareCappSpecWithState returns a mock Capp spec witg given state.
func PrepareCappStatus ¶
func PrepareCappStatus(name, namespace, domain string) cappv1alpha1.CappStatus
PrepareCappStatus returns a mock Capp status.
func PrepareCappStatusWithHostname ¶
func PrepareCappStatusWithHostname(name, namespace, hostname, domain string) cappv1alpha1.CappStatus
PrepareCappStatusWithHostname returns a mock Capp status with Hostname set.
func PrepareCappStatusWithKnativeObject ¶
func PrepareCappStatusWithKnativeObject(name string, state string) cappv1alpha1.CappStatus
PrepareCappStatusWithKnativeObject returns a mock Capp status with KnativeObject set.
func PrepareCappSummary ¶
func PrepareCappSummary(name string, namespace string) types.CappSummary
PrepareCappSummary returns a CappSummary object.
func PrepareCappWithHostname ¶
func PrepareCappWithHostname(name, namespace, hostname, domain string, labels, annotations map[string]string) cappv1alpha1.Capp
PrepareCappWithHostname returns a mock Capp object with Hostname set in the spec.
func PrepareCappWithKnativeObject ¶
func PrepareCappWithKnativeObject(name, namespace, state, site string, labels, annotations map[string]string) cappv1alpha1.Capp
PrepareCappWithKnativeObject returns a mock Capp object with knative object status.
func PrepareCappWithState ¶
func PrepareCappWithState(name, namespace, state, site string, labels, annotations map[string]string) cappv1alpha1.Capp
PrepareCappWithState returns a mock Capp object with given state.
func PrepareClusterRoleBinding ¶
func PrepareClusterRoleBinding(username, clusterRoleName string) rbacv1.ClusterRoleBinding
func PrepareConfigMap ¶
PrepareConfigMap returns a mock ConfigMap object.
func PrepareCreateCappType ¶
func PrepareCreateCappType(name, site string, labels, annotations []types.KeyValue) types.CreateCapp
PrepareCreateCappType returns a CreateCapp object.
func PrepareCreateSecretRequestType ¶
func PrepareCreateSecretRequestType(name, secretType, cert, key string, data []types.KeyValue) types.CreateSecretRequest
PrepareCreateSecretRequestType returns a Secret Request type object.
func PrepareDockerConfigSecret ¶
PrepareDockerConfigSecret returns a mock docker config secret object.
func PrepareHTPasswdIdentityProvider ¶
func PrepareHTPasswdIdentityProvider(providerName string, providerType configv1.IdentityProviderType, htpasswdProvider configv1.HTPasswdIdentityProvider) configv1.IdentityProvider
PrepareHTPasswdIdentityProvider returns a mock HTPasswordIde
func PrepareHTPasswdProvider ¶
func PrepareHTPasswdProvider(secretName string) configv1.HTPasswdIdentityProvider
PrepareHTPasswdProvider returns a mock HTPasswordIdentityProvider object.
func PrepareIdentity ¶
PrepareIdentity returns a mock Identity object.
func PrepareNamespace ¶
PrepareNamespace returns a mock Namespace object.
func PrepareNamespaceType ¶
PrepareNamespaceType returns a mock Namespace type object.
func PreparePlacement ¶
func PreparePlacement(name, namespace string, labels map[string]string) clusterv1beta1.Placement
PreparePlacement returns a mock Placement object.
func PreparePod ¶
PreparePod simulates creating a pod and adding some log lines.
func PrepareRoleBinding ¶
func PrepareRoleBinding(name, namespace, role string) rbacv1.RoleBinding
PrepareRoleBinding returns a mock RoleBinding object.
func PrepareSecret ¶
PrepareSecret returns a mock CappRevision object.
func PrepareSecretRequestType ¶
func PrepareSecretRequestType(data []types.KeyValue) types.UpdateSecretRequest
PrepareSecretRequestType returns a Secret Request type object.
func PrepareServiceAccount ¶
func PrepareServiceAccount(name, namespace string, dockerCfgSecretName string) *corev1.ServiceAccount
PrepareServiceAccount returns a mock ServiceAccount object.
func PrepareTokenSecret ¶
PrepareTokenSecret returns a mock token secret object.
func PrepareUpdateCappStateType ¶
PrepareUpdateCappStateType returns a CappState object.
func PrepareUpdateCappType ¶
func PrepareUpdateCappType(site string, labels, annotations []types.KeyValue) types.UpdateCapp
PrepareUpdateCappType returns an UpdateCappType object.
func PrepareUpdateUserDataType ¶
func PrepareUpdateUserDataType(role string) types.UpdateUserData
PrepareUpdateUserDataType returns a mock User type object.
func PrepareUser ¶
PrepareUser returns a mock User object.
func PrepareUserType ¶
PrepareUserType returns a mock User type object.
func SetPaginationValues ¶
Types ¶
This section is empty.