Help us shape the future of Go! Take the 2026 Go Developer Survey

cluster

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceClient

type ServiceClient interface {
	// List returns list of clusters
	List(ctx context.Context, connectionConfig *bean.ArgoGRPCConfig, query *cluster.ClusterQuery) (*v1alpha1.ClusterList, error)
	// Create creates a cluster
	Create(ctx context.Context, connectionConfig *bean.ArgoGRPCConfig, query *cluster.ClusterCreateRequest) (*v1alpha1.Cluster, error)
	// CreateFromKubeConfig installs the argocd-manager service account into the cluster specified in the given kubeconfig and context
	CreateFromKubeConfig(ctx context.Context, connectionConfig *bean.ArgoGRPCConfig, query *cluster.ClusterCreateRequest) (*v1alpha1.Cluster, error)
	// Get returns a cluster by server address
	Get(ctx context.Context, connectionConfig *bean.ArgoGRPCConfig, query *cluster.ClusterQuery) (*v1alpha1.Cluster, error)
	// Update updates a cluster
	Update(ctx context.Context, connectionConfig *bean.ArgoGRPCConfig, query *cluster.ClusterUpdateRequest) (*v1alpha1.Cluster, error)
	// Delete deletes a cluster
	Delete(ctx context.Context, connectionConfig *bean.ArgoGRPCConfig, query *cluster.ClusterQuery) (*cluster.ClusterResponse, error)
}

type ServiceClientImpl

type ServiceClientImpl struct {
	// contains filtered or unexported fields
}

func NewServiceClientImpl

func NewServiceClientImpl(logger *zap.SugaredLogger, argoCdConnection connection.ArgoCDConnectionManager) *ServiceClientImpl

func (ServiceClientImpl) Create

func (ServiceClientImpl) CreateFromKubeConfig

func (c ServiceClientImpl) CreateFromKubeConfig(ctx context.Context, connectionConfig *bean.ArgoGRPCConfig, query *cluster.ClusterCreateRequest) (*v1alpha1.Cluster, error)

func (ServiceClientImpl) Delete

func (ServiceClientImpl) Get

func (c ServiceClientImpl) Get(ctx context.Context, connectionConfig *bean.ArgoGRPCConfig, query *cluster.ClusterQuery) (*v1alpha1.Cluster, error)

func (ServiceClientImpl) List

func (ServiceClientImpl) Update

Jump to

Keyboard shortcuts

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