Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetaDataTokenKey = "token" // 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 Client ¶ added in v0.4.2
type Client interface { ClientOptions() ClientOptions 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) NewSettingsClient() (*grpc.ClientConn, settings.SettingsServiceClient, error) NewSettingsClientOrDie() (*grpc.ClientConn, settings.SettingsServiceClient) NewVersionClient() (*grpc.ClientConn, version.VersionServiceClient, error) NewVersionClientOrDie() (*grpc.ClientConn, version.VersionServiceClient) }
Client defines an interface for interaction with an Argo CD server.
func NewClient ¶
func NewClient(opts *ClientOptions) (Client, error)
NewClient creates a new API client from a set of config options.
func NewClientOrDie ¶
func NewClientOrDie(opts *ClientOptions) Client
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.