Documentation ¶
Index ¶
- Constants
- type Service
- func (service *Service) BucketName() string
- func (service *Service) Create(record *portainer.HelmUserRepository) error
- func (service *Service) DeleteHelmUserRepository(ID portainer.HelmUserRepositoryID) error
- func (service *Service) HelmUserRepositories() ([]portainer.HelmUserRepository, error)
- func (service *Service) HelmUserRepositoryByUserID(userID portainer.UserID) ([]portainer.HelmUserRepository, error)
- func (service *Service) UpdateHelmUserRepository(ID portainer.HelmUserRepositoryID, registry *portainer.HelmUserRepository) error
Constants ¶
View Source
const (
// BucketName represents the name of the bucket where this service stores data.
BucketName = "helm_user_repository"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents a service for managing environment(endpoint) data.
func NewService ¶
func NewService(connection portainer.Connection) (*Service, error)
NewService creates a new instance of a service.
func (*Service) BucketName ¶
func (*Service) Create ¶
func (service *Service) Create(record *portainer.HelmUserRepository) error
CreateHelmUserRepository creates a new HelmUserRepository object.
func (*Service) DeleteHelmUserRepository ¶
func (service *Service) DeleteHelmUserRepository(ID portainer.HelmUserRepositoryID) error
DeleteHelmUserRepository deletes an registry.
func (*Service) HelmUserRepositories ¶
func (service *Service) HelmUserRepositories() ([]portainer.HelmUserRepository, error)
HelmUserRepository returns an array of all HelmUserRepository
func (*Service) HelmUserRepositoryByUserID ¶
func (service *Service) HelmUserRepositoryByUserID(userID portainer.UserID) ([]portainer.HelmUserRepository, error)
HelmUserRepositoryByUserID return an array containing all the HelmUserRepository objects where the specified userID is present.
func (*Service) UpdateHelmUserRepository ¶
func (service *Service) UpdateHelmUserRepository(ID portainer.HelmUserRepositoryID, registry *portainer.HelmUserRepository) error
UpdateHelmUserRepostory updates an registry.
Click to show internal directories.
Click to hide internal directories.