applications

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtV1JSONToRuntimeRawExtension added in v0.7.0

func ExtV1JSONToRuntimeRawExtension(in extv1.JSON) *runtime.RawExtension

ExtV1JSONToRuntimeRawExtension converts an extv1.JSON into a *runtime.RawExtension.

func IsErrorApplicationNotFound

func IsErrorApplicationNotFound(err error) bool

IsErrorApplicationNotFound helper function to test for errorNotFound error.

Types

type Converter added in v0.7.0

type Converter interface {

	// goverter:ignore ServerRef
	// goverter:ignore ServerSelector
	// goverter:ignore NameRef
	// goverter:ignore NameSelector
	FromArgoDestination(in argocdv1alpha1.ApplicationDestination) v1alpha1.ApplicationDestination

	ToArgoDestination(in v1alpha1.ApplicationDestination) argocdv1alpha1.ApplicationDestination

	ToArgoApplicationSpec(in *v1alpha1.ApplicationParameters) *argocdv1alpha1.ApplicationSpec

	FromArgoApplicationStatus(in *argocdv1alpha1.ApplicationStatus) *v1alpha1.ArgoApplicationStatus
}

Converter helps to convert ArgoCD types to api types of this provider and vise-versa From & To shall both be defined for each type conversion, to prevent diverge from ArgoCD Types goverter:converter goverter:useZeroValueOnPointerInconsistency goverter:ignoreUnexported goverter:extend ExtV1JSONToRuntimeRawExtension goverter:struct:comment // +k8s:deepcopy-gen=false goverter:output:file ./zz_generated.conversion.go goverter:output:package github.com/crossplane-contrib/provider-argocd/pkg/clients/applications +k8s:deepcopy-gen=false

type ConverterImpl added in v0.7.0

type ConverterImpl struct{}

+k8s:deepcopy-gen=false

func (*ConverterImpl) FromArgoApplicationStatus added in v0.7.0

func (c *ConverterImpl) FromArgoApplicationStatus(source *v1alpha1.ApplicationStatus) *v1alpha11.ArgoApplicationStatus

func (*ConverterImpl) FromArgoDestination added in v0.7.0

func (*ConverterImpl) ToArgoApplicationSpec added in v0.7.0

func (c *ConverterImpl) ToArgoApplicationSpec(source *v1alpha11.ApplicationParameters) *v1alpha1.ApplicationSpec

func (*ConverterImpl) ToArgoDestination added in v0.7.0

type ServiceClient

type ServiceClient interface {
	// Get returns an application by name
	Get(ctx context.Context, in *application.ApplicationQuery, opts ...grpc.CallOption) (*v1alpha1.Application, error)

	// List returns list of applications
	List(ctx context.Context, in *application.ApplicationQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationList, error)

	// Create creates an application
	Create(ctx context.Context, in *application.ApplicationCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Application, error)

	// Update updates an application
	Update(ctx context.Context, in *application.ApplicationUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Application, error)

	// Delete deletes an application
	Delete(ctx context.Context, in *application.ApplicationDeleteRequest, opts ...grpc.CallOption) (*application.ApplicationResponse, error)
}

ServiceClient wraps the functions to connect to argocd repositories

func NewApplicationServiceClient

func NewApplicationServiceClient(clientOpts *apiclient.ClientOptions) (io.Closer, ServiceClient)

NewApplicationServiceClient creates a new API client from a set of config options, or fails fatally if the new client creation fails.

Jump to

Keyboard shortcuts

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