Documentation
¶
Index ¶
- type Deployment
- type DeploymentsClient
- func (dc *DeploymentsClient) Close()
- func (dc *DeploymentsClient) GetDeploymentIdByNameNamespaceCluster(ctx context.Context, name, namespace, cluster string) (string, error)
- func (dc *DeploymentsClient) GetDeployments(ctx context.Context) ([]Deployment, error)
- func (dc *DeploymentsClient) UpsertDeployment(ctx context.Context, deployment Deployment) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
type Deployment struct { ID string `json:"id"` Name string `json:"name"` Namespace string `json:"namespace"` Cluster string `json:"cluster"` Replicas int32 `json:"replicas"` TrueReplicas int32 `json:"true_replicas"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Labels map[string]string `json:"labels"` }
type DeploymentsClient ¶
type DeploymentsClient struct {
// contains filtered or unexported fields
}
func NewDeploymentsClient ¶
func NewDeploymentsClient(postgresClient *postgres.PostgresClient, dragonflyClient *dragonfly.DragonflyClient) *DeploymentsClient
func (*DeploymentsClient) Close ¶
func (dc *DeploymentsClient) Close()
func (*DeploymentsClient) GetDeploymentIdByNameNamespaceCluster ¶
func (*DeploymentsClient) GetDeployments ¶
func (dc *DeploymentsClient) GetDeployments(ctx context.Context) ([]Deployment, error)
func (*DeploymentsClient) UpsertDeployment ¶
func (dc *DeploymentsClient) UpsertDeployment(ctx context.Context, deployment Deployment) error
Click to show internal directories.
Click to hide internal directories.