applications

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrorApplicationNotFound

func IsErrorApplicationNotFound(err error) bool

IsErrorApplicationNotFound helper function to test for errorNotFound error.

Types

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) 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