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

repository

package
v3.4.13 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server provides a Repository service

func NewServer

func NewServer(
	repoClientset apiclient.Clientset,
	db db.ArgoDB,
	enf *rbac.Enforcer,
	cache *servercache.Cache,
	appLister applisters.ApplicationLister,
	projLister cache.SharedIndexInformer,
	namespace string,
	settings *settings.SettingsManager,
	hydratorEnabled bool,
) *Server

NewServer returns a new instance of the Repository service

func (*Server) Create deprecated

Create creates a repository or repository credential set

Deprecated: Use CreateRepository() instead

func (*Server) CreateRepository

func (s *Server) CreateRepository(ctx context.Context, q *repositorypkg.RepoCreateRequest) (*v1alpha1.Repository, error)

CreateRepository creates a repository configuration

func (*Server) CreateWriteRepository

func (s *Server) CreateWriteRepository(ctx context.Context, q *repositorypkg.RepoCreateRequest) (*v1alpha1.Repository, error)

CreateWriteRepository creates a repository configuration with write credentials

func (*Server) Delete deprecated

Delete removes a repository from the configuration

Deprecated: Use DeleteRepository() instead

func (*Server) DeleteRepository

func (s *Server) DeleteRepository(ctx context.Context, q *repositorypkg.RepoQuery) (*repositorypkg.RepoResponse, error)

DeleteRepository removes a repository from the configuration

func (*Server) DeleteWriteRepository

func (s *Server) DeleteWriteRepository(ctx context.Context, q *repositorypkg.RepoQuery) (*repositorypkg.RepoResponse, error)

DeleteWriteRepository removes a repository from the configuration

func (*Server) Get

Get return the requested configured repository by URL and the state of its connections.

func (*Server) GetAppDetails

GetAppDetails shows parameter values to various config tools (e.g. helm/kustomize values) This is used by UI for parameter form fields during app create & edit pages. It is also used when showing history of parameters used in previous syncs in the app history.

func (*Server) GetHelmCharts

GetHelmCharts returns list of helm charts in the specified repository

func (*Server) GetWrite

func (*Server) List deprecated

List returns list of repositories

Deprecated: Use ListRepositories instead

func (*Server) ListApps

ListApps performs discovery of a git repository for potential sources of applications. Used as a convenience to the UI for auto-complete.

func (*Server) ListOCITags added in v3.1.0

func (s *Server) ListOCITags(ctx context.Context, q *repositorypkg.RepoQuery) (*apiclient.Refs, error)

func (*Server) ListRefs

func (s *Server) ListRefs(ctx context.Context, q *repositorypkg.RepoQuery) (*apiclient.Refs, error)

func (*Server) ListRepositories

func (s *Server) ListRepositories(ctx context.Context, q *repositorypkg.RepoQuery) (*v1alpha1.RepositoryList, error)

ListRepositories returns a list of all configured repositories and the state of their connections

func (*Server) ListWriteRepositories

func (s *Server) ListWriteRepositories(ctx context.Context, q *repositorypkg.RepoQuery) (*v1alpha1.RepositoryList, error)

ListWriteRepositories returns a list of all configured repositories where the user has write access and the state of their connections

func (*Server) Update deprecated

Update updates a repository or credential set

Deprecated: Use UpdateRepository() instead

func (*Server) UpdateRepository

func (s *Server) UpdateRepository(ctx context.Context, q *repositorypkg.RepoUpdateRequest) (*v1alpha1.Repository, error)

UpdateRepository updates a repository configuration

func (*Server) UpdateWriteRepository

func (s *Server) UpdateWriteRepository(ctx context.Context, q *repositorypkg.RepoUpdateRequest) (*v1alpha1.Repository, error)

UpdateWriteRepository updates a repository configuration with write credentials

func (*Server) ValidateAccess

ValidateAccess checks whether access to a repository is possible with the given URL and credentials.

func (*Server) ValidateWriteAccess

func (s *Server) ValidateWriteAccess(ctx context.Context, q *repositorypkg.RepoAccessQuery) (*repositorypkg.RepoResponse, error)

ValidateWriteAccess checks whether write access to a repository is possible with the given URL and credentials.

Jump to

Keyboard shortcuts

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