Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetaDataTokenKey = "token" // EnvArgoCDServer is the environment variable to look for an Argo CD server address EnvArgoCDServer = "ARGOCD_SERVER" // EnvArgoCDAuthToken is the environment variable to look for an Argo CD auth token EnvArgoCDAuthToken = "ARGOCD_AUTH_TOKEN" // EnvArgoCDgRPCMaxSizeMB is the environment variable to look for a max gRPC message size EnvArgoCDgRPCMaxSizeMB = "ARGOCD_GRPC_MAX_SIZE_MB" )
Variables ¶
View Source
var ( // MaxGRPCMessageSize contains max grpc message size MaxGRPCMessageSize = env.ParseNumFromEnv(EnvArgoCDgRPCMaxSizeMB, 200, 0, math.MaxInt32) * 1024 * 1024 )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ClientOptions() ClientOptions HTTPClient() (*http.Client, error) OIDCConfig(context.Context, *settingspkg.Settings) (*oauth2.Config, *oidc.Provider, error) NewRepoClient() (io.Closer, repositorypkg.RepositoryServiceClient, error) NewRepoClientOrDie() (io.Closer, repositorypkg.RepositoryServiceClient) NewRepoCredsClient() (io.Closer, repocredspkg.RepoCredsServiceClient, error) NewRepoCredsClientOrDie() (io.Closer, repocredspkg.RepoCredsServiceClient) NewCertClient() (io.Closer, certificatepkg.CertificateServiceClient, error) NewCertClientOrDie() (io.Closer, certificatepkg.CertificateServiceClient) NewClusterClient() (io.Closer, clusterpkg.ClusterServiceClient, error) NewClusterClientOrDie() (io.Closer, clusterpkg.ClusterServiceClient) NewGPGKeyClient() (io.Closer, gpgkeypkg.GPGKeyServiceClient, error) NewGPGKeyClientOrDie() (io.Closer, gpgkeypkg.GPGKeyServiceClient) NewApplicationClient() (io.Closer, applicationpkg.ApplicationServiceClient, error) NewApplicationSetClient() (io.Closer, applicationsetpkg.ApplicationSetServiceClient, error) NewApplicationClientOrDie() (io.Closer, applicationpkg.ApplicationServiceClient) NewApplicationSetClientOrDie() (io.Closer, applicationsetpkg.ApplicationSetServiceClient) NewNotificationClient() (io.Closer, notificationpkg.NotificationServiceClient, error) NewNotificationClientOrDie() (io.Closer, notificationpkg.NotificationServiceClient) NewSessionClient() (io.Closer, sessionpkg.SessionServiceClient, error) NewSessionClientOrDie() (io.Closer, sessionpkg.SessionServiceClient) NewSettingsClient() (io.Closer, settingspkg.SettingsServiceClient, error) NewSettingsClientOrDie() (io.Closer, settingspkg.SettingsServiceClient) NewVersionClient() (io.Closer, versionpkg.VersionServiceClient, error) NewVersionClientOrDie() (io.Closer, versionpkg.VersionServiceClient) NewProjectClient() (io.Closer, projectpkg.ProjectServiceClient, error) NewProjectClientOrDie() (io.Closer, projectpkg.ProjectServiceClient) NewAccountClient() (io.Closer, accountpkg.AccountServiceClient, error) NewAccountClientOrDie() (io.Closer, accountpkg.AccountServiceClient) WatchApplicationWithRetry(ctx context.Context, appName string, revision string) chan *argoappv1.ApplicationWatchEvent }
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.
type ClientOptions ¶
type ClientOptions struct { ServerAddr string PlainText bool Insecure bool CertFile string ClientCertFile string ClientCertKeyFile string AuthToken string ConfigPath string Context string UserAgent string GRPCWeb bool GRPCWebRootPath string Core bool PortForward bool PortForwardNamespace string Headers []string HttpRetryMax int KubeOverrides *clientcmd.ConfigOverrides }
ClientOptions hold address, security, and other settings for the API client.
Directories ¶
Path | Synopsis |
---|---|
Package account is a reverse proxy.
|
Package account is a reverse proxy. |
Package application is a reverse proxy.
|
Package application is a reverse proxy. |
Package applicationset is a reverse proxy.
|
Package applicationset is a reverse proxy. |
Package certificate is a reverse proxy.
|
Package certificate is a reverse proxy. |
Package cluster is a reverse proxy.
|
Package cluster is a reverse proxy. |
Package gpgkey is a reverse proxy.
|
Package gpgkey is a reverse proxy. |
Package notification is a reverse proxy.
|
Package notification is a reverse proxy. |
Package project is a reverse proxy.
|
Package project is a reverse proxy. |
Package repocreds is a reverse proxy.
|
Package repocreds is a reverse proxy. |
Package repository is a reverse proxy.
|
Package repository is a reverse proxy. |
Package session is a reverse proxy.
|
Package session is a reverse proxy. |
Package settings is a reverse proxy.
|
Package settings is a reverse proxy. |
Package version is a reverse proxy.
|
Package version is a reverse proxy. |
Click to show internal directories.
Click to hide internal directories.