Documentation ¶
Index ¶
- func ExtV1JSONToRuntimeRawExtension(in extv1.JSON) *runtime.RawExtension
- func IsNotFound(err error) bool
- type Converter
- type ConverterImpl
- func (c *ConverterImpl) FromArgoApplicationSetSpec(source *v1alpha1.ApplicationSetSpec) *v1alpha11.ApplicationSetParameters
- func (c *ConverterImpl) FromArgoApplicationSetStatus(source *v1alpha1.ApplicationSetStatus) *v1alpha11.ArgoApplicationSetStatus
- func (c *ConverterImpl) FromArgoDestination(source v1alpha1.ApplicationDestination) v1alpha11.ApplicationDestination
- func (c *ConverterImpl) ToArgoApplicationSetSpec(source *v1alpha11.ApplicationSetParameters) *v1alpha1.ApplicationSetSpec
- func (c *ConverterImpl) ToArgoApplicationSetStatus(source *v1alpha11.ArgoApplicationSetStatus) *v1alpha1.ApplicationSetStatus
- 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 IsNotFound ¶
IsNotFound returns true if the error code is NotFound
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 ToArgoApplicationSetSpec(in *v1alpha1.ApplicationSetParameters) *argocdv1alpha1.ApplicationSetSpec FromArgoApplicationSetSpec(in *argocdv1alpha1.ApplicationSetSpec) *v1alpha1.ApplicationSetParameters FromArgoApplicationSetStatus(in *argocdv1alpha1.ApplicationSetStatus) *v1alpha1.ArgoApplicationSetStatus ToArgoApplicationSetStatus(in *v1alpha1.ArgoApplicationSetStatus) *argocdv1alpha1.ApplicationSetStatus }
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/applicationsets +k8s:deepcopy-gen=false
type ConverterImpl ¶ added in v0.7.0
type ConverterImpl struct{}
+k8s:deepcopy-gen=false
func (*ConverterImpl) FromArgoApplicationSetSpec ¶ added in v0.7.0
func (c *ConverterImpl) FromArgoApplicationSetSpec(source *v1alpha1.ApplicationSetSpec) *v1alpha11.ApplicationSetParameters
func (*ConverterImpl) FromArgoApplicationSetStatus ¶ added in v0.7.0
func (c *ConverterImpl) FromArgoApplicationSetStatus(source *v1alpha1.ApplicationSetStatus) *v1alpha11.ArgoApplicationSetStatus
func (*ConverterImpl) FromArgoDestination ¶ added in v0.7.0
func (c *ConverterImpl) FromArgoDestination(source v1alpha1.ApplicationDestination) v1alpha11.ApplicationDestination
func (*ConverterImpl) ToArgoApplicationSetSpec ¶ added in v0.7.0
func (c *ConverterImpl) ToArgoApplicationSetSpec(source *v1alpha11.ApplicationSetParameters) *v1alpha1.ApplicationSetSpec
func (*ConverterImpl) ToArgoApplicationSetStatus ¶ added in v0.7.0
func (c *ConverterImpl) ToArgoApplicationSetStatus(source *v1alpha11.ArgoApplicationSetStatus) *v1alpha1.ApplicationSetStatus
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 applicationset by name Get(ctx context.Context, in *applicationset.ApplicationSetGetQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationSet, error) // List returns list of applicationset List(ctx context.Context, in *applicationset.ApplicationSetListQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationSetList, error) // Create creates an applicationset Create(ctx context.Context, in *applicationset.ApplicationSetCreateRequest, opts ...grpc.CallOption) (*v1alpha1.ApplicationSet, error) // Delete deletes an application set Delete(ctx context.Context, in *applicationset.ApplicationSetDeleteRequest, opts ...grpc.CallOption) (*applicationset.ApplicationSetResponse, error) }
ServiceClient wraps the functions to connect to argocd repositories
func NewApplicationSetServiceClient ¶
func NewApplicationSetServiceClient(clientOpts *apiclient.ClientOptions) (io.Closer, ServiceClient)
NewApplicationSetServiceClient creates a new API client from a set of config options, or fails fatally if the new client creation fails.