deployments

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 (dc *DeploymentsClient) GetDeploymentIdByNameNamespaceCluster(ctx context.Context, name, namespace, cluster string) (string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL