Documentation ¶
Index ¶
- func ExtV1JSONToRuntimeRawExtension(in extv1.JSON) *runtime.RawExtension
- func IsErrorApplicationNotFound(err error) bool
- type Converter
- type ConverterImpl
- func (c *ConverterImpl) FromArgoApplicationStatus(source *v1alpha1.ApplicationStatus) *v1alpha11.ArgoApplicationStatus
- func (c *ConverterImpl) FromArgoDestination(source v1alpha1.ApplicationDestination) v1alpha11.ApplicationDestination
- func (c *ConverterImpl) ToArgoApplicationSpec(source *v1alpha11.ApplicationParameters) *v1alpha1.ApplicationSpec
- func (c *ConverterImpl) ToArgoDestination(source v1alpha11.ApplicationDestination) v1alpha1.ApplicationDestination
- type ServiceClient
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 ¶
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 (c *ConverterImpl) FromArgoDestination(source v1alpha1.ApplicationDestination) v1alpha11.ApplicationDestination
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
func (c *ConverterImpl) ToArgoDestination(source v1alpha11.ApplicationDestination) v1alpha1.ApplicationDestination
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.