Documentation ¶
Index ¶
- func AddTypeInformationToObject(scheme *runtime.Scheme, obj runtime.Object) error
- func BoolPtr(b bool) *bool
- func ContextWithTimeout(ctx context.Context, timeoutSeconds int64) (context.Context, context.CancelFunc)
- func GetLatestEntryPoint(ctx context.Context, client client.Client, name string, namespace string) (*kodev1alpha2.EntryPoint, error)
- func GetLatestKode(ctx context.Context, client client.Client, name string, namespace string) (*kodev1alpha2.Kode, error)
- func GetUsernameAndPasswordFromSecret(secret *corev1.Secret) (string, string, error)
- func Int32Ptr(i int32) *int32
- func Int64Ptr(i int64) *int64
- func MaskEnvVars(envs []corev1.EnvVar) []corev1.EnvVar
- func MaskSecretData(secret *corev1.Secret) map[string]string
- func MaskSpec(spec corev1.Container) corev1.Container
- func MaskString(s string) string
- func MergeLabels(labelsSlice ...map[string]string) map[string]string
- func ObjectKeyFromConfig(config CommonConfig) types.NamespacedName
- func StringPtr(s string) *string
- type CommonConfig
- type EntryPointResourceConfig
- type KodeResourceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTypeInformationToObject ¶ added in v0.2.2
addTypeInformationToObject adds TypeMeta information to a runtime.Object based upon the loaded scheme.Scheme taken from: https://github.com/kubernetes/kubernetes/issues/3030#issuecomment-700099699
func ContextWithTimeout ¶
func ContextWithTimeout(ctx context.Context, timeoutSeconds int64) (context.Context, context.CancelFunc)
wraps a context with a timeout
func GetLatestEntryPoint ¶ added in v0.4.0
func GetLatestEntryPoint(ctx context.Context, client client.Client, name string, namespace string) (*kodev1alpha2.EntryPoint, error)
func GetLatestKode ¶ added in v0.3.0
func GetUsernameAndPasswordFromSecret ¶ added in v0.3.0
func MaskEnvVars ¶
masks sensitive environment variables
func MaskSecretData ¶ added in v0.3.0
masks sensitive values in a secret
func MergeLabels ¶
merges multiple sets of labels
func ObjectKeyFromConfig ¶ added in v0.3.0
func ObjectKeyFromConfig(config CommonConfig) types.NamespacedName
Types ¶
type CommonConfig ¶ added in v0.4.0
type EntryPointResourceConfig ¶ added in v0.3.0
type EntryPointResourceConfig struct { CommonConfig CommonConfig EntryPointSpec kodev1alpha2.EntryPointSpec GatewayName string GatewayNamespace string Protocol kodev1alpha2.Protocol IdentityReference *kodev1alpha2.IdentityReference }
EntryPointResourceConfig holds configuration for EntryPoint resources
func (*EntryPointResourceConfig) HasIdentityReference ¶ added in v0.5.0
func (c *EntryPointResourceConfig) HasIdentityReference() bool
func (*EntryPointResourceConfig) IsHTTPS ¶ added in v0.5.0
func (c *EntryPointResourceConfig) IsHTTPS() bool
type KodeResourceConfig ¶ added in v0.4.0
type KodeResourceConfig struct { CommonConfig CommonConfig KodeSpec kodev1alpha2.KodeSpec Credentials *kodev1alpha2.CredentialsSpec ServiceName string UserInitPlugins []kodev1alpha2.InitPluginSpec Containers []corev1.Container InitContainers []corev1.Container Template *kodev1alpha2.Template Port kodev1alpha2.Port }
KodeResourceConfig holds configuration for Kode resources
Click to show internal directories.
Click to hide internal directories.