argocd

package
v0.0.0-...-8da5f77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 8 Imported by: 0

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

type ArgoCDClientOptions

type ArgoCDClientOptions struct {
	Address         string
	Insecure        bool
	AuthTokenEnvVar string
}

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 ArgoCDWrapperOptions struct {
	ListPoolWorkers        int
	DiffPoolWokers         int
	DoNotInstrumentWorkers bool
}

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

type ListApplicationsResult struct {
	Name      string
	Project   string
	Namespace string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL