Documentation ¶
Index ¶
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) 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] DiffWorkerPool pond.ResultPool[[]v1alpha1.Application] ApplicationClient IArgoCDClient }
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 IArgoCDClient ¶
type IArgoCDClient interface { // List returns all ArgoCD applications List(ctx context.Context, in *application.ApplicationQuery) (*v1alpha1.ApplicationList, 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) GetUrl() string }
func New ¶
func New(client IArgoCDClient, argoCDName string, options *ArgoCDWrapperOptions) (IArgoCDWrapper, error)
type ListApplicationsResult ¶
Click to show internal directories.
Click to hide internal directories.