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

repocreds

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: 9 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(
	db db.ArgoDB,
	enf *rbac.Enforcer,
) *Server

NewServer returns a new instance of the Repository service

func (*Server) CreateRepositoryCredentials

func (s *Server) CreateRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsCreateRequest) (*appsv1.RepoCreds, error)

CreateRepositoryCredentials creates a new credential set in the configuration

func (*Server) CreateWriteRepositoryCredentials

func (s *Server) CreateWriteRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsCreateRequest) (*appsv1.RepoCreds, error)

CreateWriteRepositoryCredentials creates a new credential set in the configuration

func (*Server) DeleteRepositoryCredentials

func (s *Server) DeleteRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsDeleteRequest) (*repocredspkg.RepoCredsResponse, error)

DeleteRepositoryCredentials removes a credential set from the configuration

func (*Server) DeleteWriteRepositoryCredentials

func (s *Server) DeleteWriteRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsDeleteRequest) (*repocredspkg.RepoCredsResponse, error)

DeleteWriteRepositoryCredentials removes a credential set from the configuration

func (*Server) ListRepositoryCredentials

func (s *Server) ListRepositoryCredentials(ctx context.Context, _ *repocredspkg.RepoCredsQuery) (*appsv1.RepoCredsList, error)

ListRepositoryCredentials returns a list of all configured repository credential sets

func (*Server) ListWriteRepositoryCredentials

func (s *Server) ListWriteRepositoryCredentials(ctx context.Context, _ *repocredspkg.RepoCredsQuery) (*appsv1.RepoCredsList, error)

ListWriteRepositoryCredentials returns a list of all configured repository credential sets

func (*Server) UpdateRepositoryCredentials

func (s *Server) UpdateRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsUpdateRequest) (*appsv1.RepoCreds, error)

UpdateRepositoryCredentials updates a repository credential set

func (*Server) UpdateWriteRepositoryCredentials

func (s *Server) UpdateWriteRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsUpdateRequest) (*appsv1.RepoCreds, error)

UpdateWriteRepositoryCredentials updates a repository credential set

Jump to

Keyboard shortcuts

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