Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrorClusterNotFound ¶
IsErrorClusterNotFound helper function to test for errorClusterNotFound error.
func IsErrorPermissionDenied ¶
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
Click to show internal directories.
Click to hide internal directories.