Documentation ¶
Index ¶
- type EnvironmentDetails
- type Service
- func (service *Service) Details() EnvironmentDetails
- func (service *Service) Init(store dataservices.DataStore, cryptoService portainer.CryptoService) error
- func (service *Service) IsDemo() bool
- func (service *Service) IsDemoEnvironment(environmentID portainer.EndpointID) bool
- func (service *Service) IsDemoUser(userID portainer.UserID) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentDetails ¶
type EnvironmentDetails struct { Enabled bool `json:"enabled"` Users []portainer.UserID `json:"users"` Environments []portainer.EndpointID `json:"environments"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *Service
func (*Service) Details ¶
func (service *Service) Details() EnvironmentDetails
func (*Service) Init ¶
func (service *Service) Init(store dataservices.DataStore, cryptoService portainer.CryptoService) error
func (*Service) IsDemoEnvironment ¶
func (service *Service) IsDemoEnvironment(environmentID portainer.EndpointID) bool
Click to show internal directories.
Click to hide internal directories.