demo

package
v0.0.0-...-270f78c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: Zlib Imports: 4 Imported by: 0

Documentation

Index

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) IsDemo

func (service *Service) IsDemo() bool

func (*Service) IsDemoEnvironment

func (service *Service) IsDemoEnvironment(environmentID portainer.EndpointID) bool

func (*Service) IsDemoUser

func (service *Service) IsDemoUser(userID portainer.UserID) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL