Documentation
¶
Index ¶
- type ArgoCDClient
- func (c *ArgoCDClient) Get(ctx context.Context, query *application.ApplicationQuery) (*v1alpha1.Application, error)
- func (c *ArgoCDClient) GetApplicationManifests(ctx context.Context, query *application.ApplicationManifestQuery) (*repoServerApiClient.ManifestResponse, error)
- func (c *ArgoCDClient) GetUrl() string
- func (c *ArgoCDClient) List(ctx context.Context, query *application.ApplicationQuery) (*v1alpha1.ApplicationList, error)
- type ArgoCDClientOptions
- type ArgoCDWrapper
- func (a *ArgoCDWrapper) GetManifests(ctx context.Context, applicationName string, liveRef string, targetRef string) (*GetManifestsResponse, error)
- func (a *ArgoCDWrapper) GetUrl() string
- func (a *ArgoCDWrapper) ListApplicationsByLabels(ctx context.Context, labels map[string]string) ([]ListApplicationsResult, error)
- type ArgoCDWrapperOptions
- type GetManifestsResponse
- type IArgoCDClient
- type IArgoCDWrapper
- type ListApplicationsResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgoCDClient ¶
type ArgoCDClient struct { Options *ArgoCDClientOptions // contains filtered or unexported fields }
func (*ArgoCDClient) Get ¶ added in v0.0.4
func (c *ArgoCDClient) Get(ctx context.Context, query *application.ApplicationQuery) (*v1alpha1.Application, error)
func (*ArgoCDClient) GetApplicationManifests ¶
func (c *ArgoCDClient) GetApplicationManifests(ctx context.Context, query *application.ApplicationManifestQuery) (*repoServerApiClient.ManifestResponse, error)
func (*ArgoCDClient) GetUrl ¶
func (c *ArgoCDClient) GetUrl() string
func (*ArgoCDClient) List ¶
func (c *ArgoCDClient) List(ctx context.Context, query *application.ApplicationQuery) (*v1alpha1.ApplicationList, error)
type ArgoCDClientOptions ¶
type ArgoCDWrapper ¶
type ArgoCDWrapper struct { ArgoCDClientOptions *ArgoCDWrapperOptions ListWorkerPool pond.ResultPool[[]ListApplicationsResult] ManifestsWorkerPool pond.ResultPool[[]string] ApplicationClient IArgoCDClient }
func (*ArgoCDWrapper) GetManifests ¶
func (a *ArgoCDWrapper) GetManifests(ctx context.Context, applicationName string, liveRef string, targetRef string) (*GetManifestsResponse, error)
func (*ArgoCDWrapper) GetUrl ¶
func (a *ArgoCDWrapper) GetUrl() string
func (*ArgoCDWrapper) ListApplicationsByLabels ¶
func (a *ArgoCDWrapper) ListApplicationsByLabels(ctx context.Context, labels map[string]string) ([]ListApplicationsResult, error)
type ArgoCDWrapperOptions ¶
type GetManifestsResponse ¶
type IArgoCDClient ¶
type IArgoCDClient interface { // List returns all ArgoCD applications List(ctx context.Context, in *application.ApplicationQuery) (*v1alpha1.ApplicationList, error) GetApplicationManifests(ctx context.Context, in *application.ApplicationManifestQuery) (*repoServerApiClient.ManifestResponse, error) Get(ctx context.Context, in *application.ApplicationQuery) (*v1alpha1.Application, error) GetUrl() string }
ArgoCDClient defines the interface for interacting with ArgoCD
func NewArgoCDClient ¶
func NewArgoCDClient(options *ArgoCDClientOptions) (IArgoCDClient, error)
type IArgoCDWrapper ¶
type IArgoCDWrapper interface { ListApplicationsByLabels(ctx context.Context, labels map[string]string) ([]ListApplicationsResult, error) GetManifests(ctx context.Context, applicationName string, liveRef string, targetRef string) (*GetManifestsResponse, error) GetUrl() string }
func New ¶
func New(client IArgoCDClient, argoCDName string, options *ArgoCDWrapperOptions) (IArgoCDWrapper, error)
type ListApplicationsResult ¶
type ListApplicationsResult struct { Name string Project string Namespace string Health v1alpha1.HealthStatus SyncStatus v1alpha1.SyncStatus LiveRevision string }
Click to show internal directories.
Click to hide internal directories.