clustersrepo

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectionName = "clusters"
)

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, clusterInput *apicontracts.Cluster) error

func FindByClusterId

func FindByClusterId(ctx context.Context, clusterId string) (*apicontracts.Cluster, error)

func FindByName

func FindByName(ctx context.Context, clusterName string) (*apicontracts.Cluster, error)

func GetByClusterId

func GetByClusterId(ctx context.Context, clusterId string) (*apicontracts.Cluster, error)

func GetByFilter

GetByFilter Get cluster by filter *apicontracts.Filter

func GetByWorkspace

func GetByWorkspace(ctx context.Context,
	filter *apicontracts.Filter,
	workspaceName string) (*apicontracts.PaginatedResult[apicontracts.Cluster], error)

func GetClusterIdByProjectId

func GetClusterIdByProjectId(ctx context.Context, projectId string) ([]*apicontracts.ClusterInfo, error)

func GetMetadata

func GetMetadata(ctx context.Context) (map[string][]string, error)

func Update

func Update(ctx context.Context, clusterInput *apicontracts.Cluster) error

func UpdateMetadata

func UpdateMetadata(ctx context.Context, input *apicontracts.ClusterMetadataModel, existing *apicontracts.Cluster) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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