Documentation ¶
Index ¶
- func DefaultConfigMap(id, name, namespace string) map[string]*ConfigMapConfig
- func DefaultSecretConfig(id, name, namespace string) map[string]*SecretConfig
- func DefaultServiceConfig(id, namespace, appName string) map[string]*ServiceConfig
- type Config
- func (c *Config) SetConfigMapDataValues(cmName, key, value string)
- func (c *Config) SetConfigMapStringValues(cmName, key, value string)
- func (c *Config) SetSecretDataValues(secName, key, value string)
- func (c *Config) SetSecretStringValues(secName, key, value string)
- func (c *Config) Spec() ([]byte, error)
- type ConfigMapConfig
- func (c *ConfigMapConfig) Data() map[string]string
- func (c *ConfigMapConfig) EqualConfigMap(target *apiv1.ConfigMap) bool
- func (c *ConfigMapConfig) Get() (*apiv1.ConfigMap, error)
- func (c *ConfigMapConfig) Set(value *apiv1.ConfigMap) *ConfigMapConfig
- func (c *ConfigMapConfig) SetDataVariable(key, value string) *ConfigMapConfig
- func (c *ConfigMapConfig) SetStringVariable(key, value string) *ConfigMapConfig
- func (c *ConfigMapConfig) Spec() ([]byte, error)
- type SecretConfig
- func (s *SecretConfig) Data() map[string][]byte
- func (s *SecretConfig) Equal(target *apiv1.Secret) bool
- func (s *SecretConfig) Get() (*apiv1.Secret, error)
- func (s *SecretConfig) Set(value *apiv1.Secret) *SecretConfig
- func (s *SecretConfig) SetDataVariable(key, value string) *SecretConfig
- func (s *SecretConfig) SetStringVariable(key, value string) *SecretConfig
- func (s *SecretConfig) Spec() ([]byte, error)
- func (s *SecretConfig) StringData() map[string]string
- type ServiceConfig
- func (s *ServiceConfig) Get() (*apiv1.Service, error)
- func (s *ServiceConfig) Set(value *apiv1.Service) *ServiceConfig
- func (s *ServiceConfig) SetContainerPort(value int32) *ServiceConfig
- func (s *ServiceConfig) SetExpose(value string) *ServiceConfig
- func (s *ServiceConfig) SetHeadless(value bool) *ServiceConfig
- func (s *ServiceConfig) SetNodePort(value int32) *ServiceConfig
- func (s *ServiceConfig) SetPortName(value string) *ServiceConfig
- func (s *ServiceConfig) SetTargetPort(value int32) *ServiceConfig
- func (s *ServiceConfig) Spec() ([]byte, error)
- type StatefulSetConfig
- func (sc *StatefulSetConfig) Get() (*appsv1.StatefulSet, error)
- func (sc *StatefulSetConfig) Set(value *appsv1.StatefulSet) *StatefulSetConfig
- func (sc *StatefulSetConfig) SetConfigChecksum(value string) *StatefulSetConfig
- func (sc *StatefulSetConfig) SetHealthProbe(value string) *StatefulSetConfig
- func (sc *StatefulSetConfig) SetImageName(value string) *StatefulSetConfig
- func (sc *StatefulSetConfig) SetImagePullPolicy(value string) *StatefulSetConfig
- func (sc *StatefulSetConfig) SetNodeSelectors(value string) *StatefulSetConfig
- func (sc *StatefulSetConfig) SetReplicas(value int) *StatefulSetConfig
- func (sc *StatefulSetConfig) SetResources(value string) *StatefulSetConfig
- func (sc *StatefulSetConfig) SetServiceAccount(value string) *StatefulSetConfig
- func (sc *StatefulSetConfig) SetStandalone(value bool) *StatefulSetConfig
- func (sc *StatefulSetConfig) SetStatefulsetConfigData(value string) *StatefulSetConfig
- func (sc *StatefulSetConfig) SetStorageClass(value string) *StatefulSetConfig
- func (sc *StatefulSetConfig) SetVolume(value string) *StatefulSetConfig
- func (sc *StatefulSetConfig) Spec() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigMap ¶
func DefaultConfigMap(id, name, namespace string) map[string]*ConfigMapConfig
func DefaultSecretConfig ¶
func DefaultSecretConfig(id, name, namespace string) map[string]*SecretConfig
func DefaultServiceConfig ¶
func DefaultServiceConfig(id, namespace, appName string) map[string]*ServiceConfig
Types ¶
type Config ¶
type Config struct { Id string Name string Namespace string StatefulSet *StatefulSetConfig Services map[string]*ServiceConfig ConfigMaps map[string]*ConfigMapConfig Secrets map[string]*SecretConfig }
func NewKubeMQManifestConfig ¶
func (*Config) SetConfigMapDataValues ¶
func (*Config) SetConfigMapStringValues ¶
func (*Config) SetSecretDataValues ¶
func (*Config) SetSecretStringValues ¶
type ConfigMapConfig ¶
type ConfigMapConfig struct { Id string Name string Namespace string Variables map[string]string // contains filtered or unexported fields }
func (*ConfigMapConfig) Data ¶
func (c *ConfigMapConfig) Data() map[string]string
func (*ConfigMapConfig) EqualConfigMap ¶
func (c *ConfigMapConfig) EqualConfigMap(target *apiv1.ConfigMap) bool
func (*ConfigMapConfig) Set ¶
func (c *ConfigMapConfig) Set(value *apiv1.ConfigMap) *ConfigMapConfig
func (*ConfigMapConfig) SetDataVariable ¶
func (c *ConfigMapConfig) SetDataVariable(key, value string) *ConfigMapConfig
func (*ConfigMapConfig) SetStringVariable ¶
func (c *ConfigMapConfig) SetStringVariable(key, value string) *ConfigMapConfig
func (*ConfigMapConfig) Spec ¶
func (c *ConfigMapConfig) Spec() ([]byte, error)
type SecretConfig ¶
type SecretConfig struct { Id string Name string Namespace string DataVariables map[string]string StringVariables map[string]string // contains filtered or unexported fields }
func ImportSecret ¶
func ImportSecret(spec []byte) (*SecretConfig, error)
func NewSecretConfig ¶
func NewSecretConfig(id, name, namespace string) *SecretConfig
func (*SecretConfig) Data ¶
func (s *SecretConfig) Data() map[string][]byte
func (*SecretConfig) Set ¶
func (s *SecretConfig) Set(value *apiv1.Secret) *SecretConfig
func (*SecretConfig) SetDataVariable ¶
func (s *SecretConfig) SetDataVariable(key, value string) *SecretConfig
func (*SecretConfig) SetStringVariable ¶
func (s *SecretConfig) SetStringVariable(key, value string) *SecretConfig
func (*SecretConfig) Spec ¶
func (s *SecretConfig) Spec() ([]byte, error)
func (*SecretConfig) StringData ¶
func (s *SecretConfig) StringData() map[string]string
type ServiceConfig ¶
type ServiceConfig struct { Id string Name string Namespace string AppName string Expose string ContainerPort int32 TargetPort int32 PortName string NodePort int32 Headless bool // contains filtered or unexported fields }
func ImportServiceConfig ¶
func ImportServiceConfig(spec []byte) (*ServiceConfig, error)
func NewServiceConfig ¶
func NewServiceConfig(id, name, namespace, appName string) *ServiceConfig
func (*ServiceConfig) Set ¶
func (s *ServiceConfig) Set(value *apiv1.Service) *ServiceConfig
func (*ServiceConfig) SetContainerPort ¶
func (s *ServiceConfig) SetContainerPort(value int32) *ServiceConfig
func (*ServiceConfig) SetExpose ¶
func (s *ServiceConfig) SetExpose(value string) *ServiceConfig
func (*ServiceConfig) SetHeadless ¶ added in v1.1.0
func (s *ServiceConfig) SetHeadless(value bool) *ServiceConfig
func (*ServiceConfig) SetNodePort ¶
func (s *ServiceConfig) SetNodePort(value int32) *ServiceConfig
func (*ServiceConfig) SetPortName ¶
func (s *ServiceConfig) SetPortName(value string) *ServiceConfig
func (*ServiceConfig) SetTargetPort ¶
func (s *ServiceConfig) SetTargetPort(value int32) *ServiceConfig
func (*ServiceConfig) Spec ¶
func (s *ServiceConfig) Spec() ([]byte, error)
type StatefulSetConfig ¶
type StatefulSetConfig struct { Id string Name string Namespace string ImagePullPolicy string Replicas int Volume string StorageClass string Health string Resources string NodeSelectors string Image string ServiceAccount string ConfigCheckSum string Standalone bool StatefulSetConfigData string // contains filtered or unexported fields }
func DefaultStatefulSetConfig ¶
func DefaultStatefulSetConfig(id, name, namespace string) *StatefulSetConfig
func (*StatefulSetConfig) Get ¶
func (sc *StatefulSetConfig) Get() (*appsv1.StatefulSet, error)
func (*StatefulSetConfig) Set ¶
func (sc *StatefulSetConfig) Set(value *appsv1.StatefulSet) *StatefulSetConfig
func (*StatefulSetConfig) SetConfigChecksum ¶ added in v1.0.3
func (sc *StatefulSetConfig) SetConfigChecksum(value string) *StatefulSetConfig
func (*StatefulSetConfig) SetHealthProbe ¶
func (sc *StatefulSetConfig) SetHealthProbe(value string) *StatefulSetConfig
func (*StatefulSetConfig) SetImageName ¶
func (sc *StatefulSetConfig) SetImageName(value string) *StatefulSetConfig
func (*StatefulSetConfig) SetImagePullPolicy ¶
func (sc *StatefulSetConfig) SetImagePullPolicy(value string) *StatefulSetConfig
func (*StatefulSetConfig) SetNodeSelectors ¶
func (sc *StatefulSetConfig) SetNodeSelectors(value string) *StatefulSetConfig
func (*StatefulSetConfig) SetReplicas ¶
func (sc *StatefulSetConfig) SetReplicas(value int) *StatefulSetConfig
func (*StatefulSetConfig) SetResources ¶
func (sc *StatefulSetConfig) SetResources(value string) *StatefulSetConfig
func (*StatefulSetConfig) SetServiceAccount ¶ added in v1.0.2
func (sc *StatefulSetConfig) SetServiceAccount(value string) *StatefulSetConfig
func (*StatefulSetConfig) SetStandalone ¶ added in v1.1.0
func (sc *StatefulSetConfig) SetStandalone(value bool) *StatefulSetConfig
func (*StatefulSetConfig) SetStatefulsetConfigData ¶ added in v1.1.0
func (sc *StatefulSetConfig) SetStatefulsetConfigData(value string) *StatefulSetConfig
func (*StatefulSetConfig) SetStorageClass ¶
func (sc *StatefulSetConfig) SetStorageClass(value string) *StatefulSetConfig
func (*StatefulSetConfig) SetVolume ¶
func (sc *StatefulSetConfig) SetVolume(value string) *StatefulSetConfig
func (*StatefulSetConfig) Spec ¶
func (sc *StatefulSetConfig) Spec() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.