Documentation ¶
Index ¶
- type Authentication
- type Authorization
- type Cluster
- func (c *Cluster) Clone(handler ClustersHandler) *Cluster
- func (c *Cluster) ColoredYaml() (string, error)
- func (c *Cluster) EndPoints() []string
- func (c *Cluster) Key() string
- func (c *Cluster) Render() (*Cluster, error)
- func (c *Cluster) SetGrpcEndPoints(value string) *Cluster
- func (c *Cluster) SetNamespaces(value []string) *Cluster
- func (c *Cluster) SetTakenClusterNames(value []string) *Cluster
- func (c *Cluster) Validate() error
- type ClustersHandler
- type Health
- type Image
- type License
- type Log
- type Name
- type Namespace
- type NodeSelector
- type Notification
- type Queue
- type Replicas
- type Resource
- type Routing
- type Service
- type Status
- type Store
- type Template
- type Tls
- type Validator
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
func NewAuthentication ¶
func NewAuthentication() *Authentication
func (*Authentication) Clone ¶ added in v0.5.1
func (a *Authentication) Clone() *Authentication
func (*Authentication) ColoredYaml ¶ added in v0.5.1
func (a *Authentication) ColoredYaml() (string, error)
func (*Authentication) Render ¶
func (a *Authentication) Render() (*Authentication, error)
func (*Authentication) Validate ¶
func (a *Authentication) Validate() error
type Authorization ¶
type Authorization struct { Policy string `json:"policy"` Url string `json:"url"` AutoReload int `json:"auto_reload"` }
func NewAuthorization ¶
func NewAuthorization() *Authorization
func (*Authorization) Clone ¶ added in v0.5.1
func (a *Authorization) Clone() *Authorization
func (*Authorization) ColoredYaml ¶ added in v0.5.1
func (a *Authorization) ColoredYaml() (string, error)
func (*Authorization) Render ¶
func (a *Authorization) Render() (*Authorization, error)
func (*Authorization) Validate ¶
func (a *Authorization) Validate() error
type Cluster ¶
type Cluster struct { Name string `json:"name"` Namespace string `json:"namespace"` Replicas int `json:"replicas"` Authentication *Authentication `json:"authentication"` Authorization *Authorization `json:"authorization"` Health *Health `json:"health"` Image *Image `json:"image"` License string `json:"license"` Log *Log `json:"log"` NodeSelectors map[string]string `json:"node_selectors"` Notification *Notification `json:"notification"` Queue *Queue `json:"queue"` Resource *Resource `json:"resource"` Api *Service `json:"api"` Grpc *Service `json:"grpc"` Rest *Service `json:"rest"` Routing *Routing `json:"routing"` Store *Store `json:"store"` Tls *Tls `json:"tls"` Volume *Volume `json:"volume"` Status *Status `json:"-" yaml:"-"` ImageSpec string `json:"-" yaml:"-"` AuthenticationSpec string `json:"-" yaml:"-"` AuthorizationSpec string `json:"-" yaml:"-"` HealthSpec string `json:"-" yaml:"-"` NotificationSpec string `json:"-" yaml:"-"` QueueSpec string `json:"-" yaml:"-"` StoreSpec string `json:"-" yaml:"-"` ApiServiceSpec string `json:"-" yaml:"-"` GrpcServiceSpec string `json:"-" yaml:"-"` RestServiceSpec string `json:"-" yaml:"-"` VolumeSpec string `json:"-" yaml:"-"` TlsSpec string `json:"-" yaml:"-"` ResourcesSpec string `json:"-" yaml:"-"` RoutingSpec string `json:"-" yaml:"-"` LogSpec string `json:"-" yaml:"-"` NodeSelectorsSpec string `json:"-" yaml:"-"` LicenseSpec string `json:"-" yaml:"-"` // contains filtered or unexported fields }
func AddCluster ¶ added in v0.5.1
func AddCluster(handler ClustersHandler) (*Cluster, error)
func CopyCluster ¶ added in v0.5.1
func CopyCluster(origin *Cluster, handler ClustersHandler) (*Cluster, error)
func EditCluster ¶ added in v0.5.1
func EditCluster(origin *Cluster, handler ClustersHandler, isCopyMode bool) (*Cluster, error)
func NewCluster ¶
func NewCluster(handler ClustersHandler) *Cluster
func (*Cluster) Clone ¶ added in v0.5.1
func (c *Cluster) Clone(handler ClustersHandler) *Cluster
func (*Cluster) ColoredYaml ¶ added in v0.5.1
func (*Cluster) SetGrpcEndPoints ¶ added in v0.5.1
func (*Cluster) SetNamespaces ¶
func (*Cluster) SetTakenClusterNames ¶
type ClustersHandler ¶ added in v0.5.1
type Health ¶
type Health struct { Enabled bool `json:"enabled"` InitialDelaySeconds int `json:"initial_delay_seconds"` PeriodSeconds int `json:"period_seconds"` TimeoutSeconds int `json:"timeout_seconds"` SuccessThreshold int `json:"success_threshold"` FailureThreshold int `json:"failure_threshold"` }
func (*Health) ColoredYaml ¶ added in v0.5.1
type Image ¶
func (*Image) ColoredYaml ¶ added in v0.5.1
type License ¶
type License struct {
Data string
}
func NewLicense ¶
func NewLicense() *License
func (*License) ColoredYaml ¶ added in v0.5.1
type Log ¶
type Log struct { Level int `json:"level"` // contains filtered or unexported fields }
func (*Log) ColoredYaml ¶ added in v0.5.1
type Name ¶
type Name struct { Name string // contains filtered or unexported fields }
func (*Name) SetTakenNames ¶
type Namespace ¶
type Namespace struct { Namespace string // contains filtered or unexported fields }
func NewNamespace ¶
func NewNamespace() *Namespace
func (*Namespace) SetNamespaces ¶
type NodeSelector ¶
type NodeSelector struct {
// contains filtered or unexported fields
}
func NewNodeSelector ¶
func NewNodeSelector() *NodeSelector
func (*NodeSelector) Clone ¶ added in v0.5.1
func (n *NodeSelector) Clone() *NodeSelector
func (*NodeSelector) ColoredYaml ¶ added in v0.5.1
func (n *NodeSelector) ColoredYaml() (string, error)
func (*NodeSelector) Validate ¶
func (n *NodeSelector) Validate() error
type Notification ¶
func NewNotification ¶
func NewNotification() *Notification
func (*Notification) Clone ¶ added in v0.5.1
func (n *Notification) Clone() *Notification
func (*Notification) ColoredYaml ¶ added in v0.5.1
func (n *Notification) ColoredYaml() (string, error)
func (*Notification) Render ¶
func (n *Notification) Render() (*Notification, error)
func (*Notification) Validate ¶
func (n *Notification) Validate() error
type Queue ¶
type Queue struct { MaxReceiveMessagesRequest int `json:"max_receive_messages_request"` MaxWaitTimeoutSeconds int `json:"max_wait_timeout_seconds"` MaxExpirationSeconds int `json:"max_expiration_seconds"` MaxDelaySeconds int `json:"max_delay_seconds"` MaxReQueues int `json:"max_re_queues"` MaxVisibilitySeconds int `json:"max_visibility_seconds"` DefaultVisibilitySeconds int `json:"default_visibility_seconds"` DefaultWaitTimeoutSeconds int `json:"default_wait_timeout_seconds"` }
func (*Queue) ColoredYaml ¶ added in v0.5.1
type Replicas ¶
type Replicas struct {
// contains filtered or unexported fields
}
func NewReplicas ¶
func NewReplicas() *Replicas
type Resource ¶
type Resource struct { LimitsCpu string `json:"limits_cpu"` LimitsMemory string `json:"limits_memory"` RequestsCpu string `json:"requests_cpu"` RequestsMemory string `json:"requests_memory"` }
func NewResource ¶
func NewResource() *Resource
func (*Resource) ColoredYaml ¶ added in v0.5.1
type Routing ¶
type Routing struct { Data string `json:"data"` Url string `json:"url"` AutoReload int `json:"auto_reload"` }
func NewRouting ¶
func NewRouting() *Routing
func (*Routing) ColoredYaml ¶ added in v0.5.1
type Service ¶
type Service struct { NodePort int `json:"node_port"` Expose string `json:"expose"` BufferSize int `json:"buffer_size"` BodyLimit int `json:"body_limit"` // contains filtered or unexported fields }
func NewService ¶
func NewService() *Service
func (*Service) ColoredYaml ¶ added in v0.5.1
type Status ¶ added in v0.5.1
type Status struct { Replicas int32 `json:"replicas"` Version string `json:"version"` Ready int32 `json:"ready"` Grpc string `json:"grpc"` Rest string `json:"rest"` Api string `json:"api"` Selector string `json:"selector"` LicenseType string `json:"license_type"` LicenseTo string `json:"license_to"` LicenseExpire string `json:"license_expire"` Status string `json:"status"` }
type Store ¶
type Store struct { Clean bool `json:"clean"` Path string `json:"path"` MaxChannels int `json:"max_channels"` MaxSubscribers int `json:"max_subscribers"` MaxMessages int `json:"max_messages"` MaxChannelSize int `json:"max_channel_size"` MessagesRetentionMinutes int `json:"messages_retention_minutes"` PurgeInactiveMinutes int `json:"purge_inactive_minutes"` }
func (*Store) ColoredYaml ¶ added in v0.5.1
type Template ¶ added in v0.5.1
type Template struct { Structure string Data interface{} // contains filtered or unexported fields }
func NewTemplate ¶ added in v0.5.1
type Tls ¶
func (*Tls) ColoredYaml ¶ added in v0.5.1
type Volume ¶
type Volume struct { Size string `json:"size"` StorageClass string `json:"storage_class"` // contains filtered or unexported fields }
func (*Volume) ColoredYaml ¶ added in v0.5.1
func (*Volume) SetStorageClasses ¶
Click to show internal directories.
Click to hide internal directories.