cluster

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrorClusterNotFound

func IsErrorClusterNotFound(err error) bool

IsErrorClusterNotFound helper function to test for errorClusterNotFound error.

func IsErrorPermissionDenied

func IsErrorPermissionDenied(err error) bool

IsErrorPermissionDenied helper function to test for errorPermissionDenied error.

func NewClusterServiceClient

func NewClusterServiceClient(clientOpts *apiclient.ClientOptions) (io.Closer, cluster.ClusterServiceClient)

NewClusterServiceClient creates a new API client from a set of config options, or fails fatally if the new client creation fails.

Types

type ServiceClient

type ServiceClient interface {
	// Create creates a cluster
	Create(ctx context.Context, in *cluster.ClusterCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Cluster, error)
	// Get returns a cluster by server address
	Get(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.Cluster, error)
	// Update updates a cluster
	Update(ctx context.Context, in *cluster.ClusterUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Cluster, error)
	// Delete deletes a cluster
	Delete(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption) (*cluster.ClusterResponse, error)
}

ServiceClient wraps the functions to connect to argocd repositories

Jump to

Keyboard shortcuts

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