Documentation
¶
Index ¶
- type Server
- func (s *Server) CreateRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsCreateRequest) (*appsv1.RepoCreds, error)
- func (s *Server) CreateWriteRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsCreateRequest) (*appsv1.RepoCreds, error)
- func (s *Server) DeleteRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsDeleteRequest) (*repocredspkg.RepoCredsResponse, error)
- func (s *Server) DeleteWriteRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsDeleteRequest) (*repocredspkg.RepoCredsResponse, error)
- func (s *Server) ListRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsQuery) (*appsv1.RepoCredsList, error)
- func (s *Server) ListWriteRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsQuery) (*appsv1.RepoCredsList, error)
- func (s *Server) UpdateRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsUpdateRequest) (*appsv1.RepoCreds, error)
- func (s *Server) UpdateWriteRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsUpdateRequest) (*appsv1.RepoCreds, error)
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, settings *settings.SettingsManager, ) *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 ¶ added in v2.14.0
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 ¶ added in v2.14.0
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, q *repocredspkg.RepoCredsQuery) (*appsv1.RepoCredsList, error)
ListRepositoryCredentials returns a list of all configured repository credential sets
func (*Server) ListWriteRepositoryCredentials ¶ added in v2.14.0
func (s *Server) ListWriteRepositoryCredentials(ctx context.Context, q *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 ¶ added in v2.14.0
func (s *Server) UpdateWriteRepositoryCredentials(ctx context.Context, q *repocredspkg.RepoCredsUpdateRequest) (*appsv1.RepoCreds, error)
UpdateWriteRepositoryCredentials updates a repository credential set