argo_client

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatManifestsYAML

func FormatManifestsYAML(manifestBytes []string) []string

func GetManifestsLocal

func GetManifestsLocal(ctx context.Context, name string, tempRepoDir string, changedAppFilePath string) ([]string, error)

Types

type ArgoClient

type ArgoClient struct {
	// contains filtered or unexported fields
}

func GetArgoClient

func GetArgoClient() *ArgoClient

func NewArgoClient

func NewArgoClient(client apiclient.Client) *ArgoClient

func (*ArgoClient) GetApplicationByName

func (argo *ArgoClient) GetApplicationByName(ctx context.Context, name string) (*v1alpha1.Application, error)

GetApplicationByName takes a context and a name, then queries the Argo Application client to retrieve the Application with the specified name. It returns the found Application and any error encountered during the process. If successful, the Application client connection is closed before returning.

func (*ArgoClient) GetApplicationSetClient added in v1.0.7

func (argo *ArgoClient) GetApplicationSetClient() (io.Closer, applicationset.ApplicationSetServiceClient)

func (*ArgoClient) GetApplicationSets added in v1.0.7

func (argo *ArgoClient) GetApplicationSets(ctx context.Context) (*v1alpha1.ApplicationSetList, error)

func (*ArgoClient) GetApplications added in v1.0.7

func (argo *ArgoClient) GetApplications(ctx context.Context) (*v1alpha1.ApplicationList, error)

func (*ArgoClient) GetApplicationsByAppset

func (argo *ArgoClient) GetApplicationsByAppset(ctx context.Context, name string) (*v1alpha1.ApplicationList, error)

GetApplicationsByAppset takes a context and an appset, then queries the Argo Application client to retrieve the Applications managed by the appset It returns the found ApplicationList and any error encountered during the process.

func (*ArgoClient) GetApplicationsByLabels

func (argo *ArgoClient) GetApplicationsByLabels(ctx context.Context, labels string) (*v1alpha1.ApplicationList, error)

GetApplicationsByLabels takes a context and a labelselector, then queries the Argo Application client to retrieve the Applications with the specified label. It returns the found ApplicationList and any error encountered during the process. If successful, the Application client connection is closed before returning.

func (*ArgoClient) GetClusterClient

func (argo *ArgoClient) GetClusterClient() (io.Closer, cluster.ClusterServiceClient)

func (*ArgoClient) GetKubernetesVersionByApplicationName

func (argo *ArgoClient) GetKubernetesVersionByApplicationName(ctx context.Context, appName string) (string, error)

GetKubernetesVersionByApplicationName is a method on the ArgoClient struct that takes a context and an application name as parameters, and returns the Kubernetes version of the destination cluster where the specified application is running. It returns an error if the application or cluster information cannot be retrieved.

func (*ArgoClient) GetSettingsClient

func (argo *ArgoClient) GetSettingsClient() (io.Closer, settings.SettingsServiceClient)

Jump to

Keyboard shortcuts

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