Documentation ¶
Index ¶
- Constants
- type Service
- func (service *Service) BucketName() string
- func (service *Service) Create(registry *portainer.Registry) error
- func (service *Service) DeleteRegistry(ID portainer.RegistryID) error
- func (service *Service) Registries() ([]portainer.Registry, error)
- func (service *Service) Registry(ID portainer.RegistryID) (*portainer.Registry, error)
- func (service *Service) UpdateRegistry(ID portainer.RegistryID, registry *portainer.Registry) error
Constants ¶
View Source
const (
// BucketName represents the name of the bucket where this service stores data.
BucketName = "registries"
)
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) DeleteRegistry ¶
func (service *Service) DeleteRegistry(ID portainer.RegistryID) error
DeleteRegistry deletes an registry.
func (*Service) Registries ¶
Registries returns an array containing all the registries.
func (*Service) UpdateRegistry ¶
UpdateRegistry updates an registry.
Click to show internal directories.
Click to hide internal directories.