Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EnvArgoCDServer is the environment variable to look for an ArgoCD server address EnvArgoCDServer = "ARGOCD_SERVER" // EnvArgoCDAuthToken is the environment variable to look for an ArgoCD auth token EnvArgoCDAuthToken = "ARGOCD_AUTH_TOKEN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOptions ¶
type ClientOptions struct { ServerAddr string PlainText bool Insecure bool CertFile string AuthToken string ConfigPath string Context string }
ClientOptions hold address, security, and other settings for the API client.
type ServerClient ¶
type ServerClient interface { NewConn() (*grpc.ClientConn, error) NewRepoClient() (*grpc.ClientConn, repository.RepositoryServiceClient, error) NewRepoClientOrDie() (*grpc.ClientConn, repository.RepositoryServiceClient) NewClusterClient() (*grpc.ClientConn, cluster.ClusterServiceClient, error) NewClusterClientOrDie() (*grpc.ClientConn, cluster.ClusterServiceClient) NewApplicationClient() (*grpc.ClientConn, application.ApplicationServiceClient, error) NewApplicationClientOrDie() (*grpc.ClientConn, application.ApplicationServiceClient) NewSessionClient() (*grpc.ClientConn, session.SessionServiceClient, error) NewSessionClientOrDie() (*grpc.ClientConn, session.SessionServiceClient) NewVersionClient() (*grpc.ClientConn, version.VersionServiceClient, error) NewVersionClientOrDie() (*grpc.ClientConn, version.VersionServiceClient) }
ServerClient defines an interface for interaction with an Argo CD server.
func NewClient ¶
func NewClient(opts *ClientOptions) (ServerClient, error)
NewClient creates a new API client from a set of config options.
func NewClientOrDie ¶
func NewClientOrDie(opts *ClientOptions) ServerClient
NewClientOrDie creates a new API client from a set of config options, or fails fatally if the new client creation fails.
Click to show internal directories.
Click to hide internal directories.