Documentation ¶
Index ¶
- Constants
- func Create(ctx context.Context, clusterInput *apicontracts.Cluster) error
- func FindByClusterId(ctx context.Context, clusterId string) (*apicontracts.Cluster, error)
- func FindByName(ctx context.Context, clusterName string) (*apicontracts.Cluster, error)
- func GetByClusterId(ctx context.Context, clusterId string) (*apicontracts.Cluster, error)
- func GetByFilter(ctx context.Context, filter *apicontracts.Filter) (*apicontracts.PaginatedResult[*apicontracts.Cluster], error)
- func GetByWorkspace(ctx context.Context, filter *apicontracts.Filter, workspaceName string) (*apicontracts.PaginatedResult[apicontracts.Cluster], error)
- func GetClusterIdByProjectId(ctx context.Context, projectId string) ([]*apicontracts.ClusterInfo, error)
- func GetControlPlaneMetadata(ctx context.Context) ([]apicontracts.ClusterControlPlaneMetadata, error)
- func GetMetadata(ctx context.Context) (map[string][]string, error)
- func Update(ctx context.Context, clusterInput *apicontracts.Cluster) error
- func UpdateMetadata(ctx context.Context, input *apicontracts.ClusterMetadataModel, ...) error
Constants ¶
View Source
const (
CollectionName = "clusters"
)
Variables ¶
This section is empty.
Functions ¶
func FindByClusterId ¶
func FindByName ¶
func GetByClusterId ¶
func GetByFilter ¶
func GetByFilter(ctx context.Context, filter *apicontracts.Filter) (*apicontracts.PaginatedResult[*apicontracts.Cluster], error)
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 GetControlPlaneMetadata ¶
func GetControlPlaneMetadata(ctx context.Context) ([]apicontracts.ClusterControlPlaneMetadata, error)
func UpdateMetadata ¶
func UpdateMetadata(ctx context.Context, input *apicontracts.ClusterMetadataModel, existing *apicontracts.Cluster) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.