Help us shape the future of Go! Take the 2026 Go Developer Survey

projects

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrorProjectNotFound

func IsErrorProjectNotFound(err error) bool

IsErrorProjectNotFound helper function to test for errorProjectNotFound error.

func NewProjectServiceClient

func NewProjectServiceClient(clientOpts *apiclient.ClientOptions) (io.Closer, project.ProjectServiceClient, error)

NewProjectServiceClient creates a new API client from a set of config options. Any error from constructing the underlying argo-cd client or opening the project gRPC connection is returned to the caller so the reconciler can retry with backoff instead of crashing the controller process.

Types

type ProjectServiceClient

type ProjectServiceClient interface {
	// Create a new project
	Create(ctx context.Context, in *project.ProjectCreateRequest, opts ...grpc.CallOption) (*v1alpha1.AppProject, error)
	// Get returns a project by name
	Get(ctx context.Context, in *project.ProjectQuery, opts ...grpc.CallOption) (*v1alpha1.AppProject, error)
	// Update updates a project
	Update(ctx context.Context, in *project.ProjectUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.AppProject, error)
	// Delete deletes a project
	Delete(ctx context.Context, in *project.ProjectQuery, opts ...grpc.CallOption) (*project.EmptyResponse, error)
	// CreateToken a new project token
	CreateToken(ctx context.Context, in *project.ProjectTokenCreateRequest, opts ...grpc.CallOption) (*project.ProjectTokenResponse, error)
	// DeleteToken a new project token
	DeleteToken(ctx context.Context, in *project.ProjectTokenDeleteRequest, opts ...grpc.CallOption) (*project.EmptyResponse, error)
}

ProjectServiceClient wraps the functions to connect to argocd repositories

Jump to

Keyboard shortcuts

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