Documentation ¶
Index ¶
- Constants
- type Service
- func (service *Service) BucketName() string
- func (service *Service) Create(stack *portainer.Stack) error
- func (service *Service) DeleteStack(ID portainer.StackID) error
- func (service *Service) GetNextIdentifier() int
- func (service *Service) RefreshableStacks() ([]portainer.Stack, error)
- func (service *Service) Stack(ID portainer.StackID) (*portainer.Stack, error)
- func (service *Service) StackByName(name string) (*portainer.Stack, error)
- func (service *Service) StackByWebhookID(id string) (*portainer.Stack, error)
- func (service *Service) Stacks() ([]portainer.Stack, error)
- func (service *Service) StacksByName(name string) ([]portainer.Stack, error)
- func (service *Service) UpdateStack(ID portainer.StackID, stack *portainer.Stack) error
Constants ¶
View Source
const (
// BucketName represents the name of the bucket where this service stores data.
BucketName = "stacks"
)
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) DeleteStack ¶
DeleteStack deletes a stack.
func (*Service) GetNextIdentifier ¶
GetNextIdentifier returns the next identifier for a stack.
func (*Service) RefreshableStacks ¶
RefreshableStacks returns stacks that are configured for a periodic update
func (*Service) StackByName ¶
StackByName returns a stack object by name.
func (*Service) StackByWebhookID ¶
StackByWebhookID returns a pointer to a stack object by webhook ID. It returns nil, errors.ErrObjectNotFound if there's no stack associated with the webhook ID.
func (*Service) StacksByName ¶
Stacks returns an array containing all the stacks with same name
Click to show internal directories.
Click to hide internal directories.