Documentation ¶
Index ¶
- Constants
- type Service
- func (service *Service) BucketName() string
- func (service *Service) Create(user *portainer.User) error
- func (service *Service) DeleteUser(ID portainer.UserID) error
- func (service *Service) UpdateUser(ID portainer.UserID, user *portainer.User) error
- func (service *Service) User(ID portainer.UserID) (*portainer.User, error)
- func (service *Service) UserByUsername(username string) (*portainer.User, error)
- func (service *Service) Users() ([]portainer.User, error)
- func (service *Service) UsersByRole(role portainer.UserRole) ([]portainer.User, error)
Constants ¶
View Source
const (
// BucketName represents the name of the bucket where this service stores data.
BucketName = "users"
)
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) DeleteUser ¶
DeleteUser deletes a user.
func (*Service) UpdateUser ¶
UpdateUser saves a user.
func (*Service) UserByUsername ¶
UserByUsername returns a user by username.
Click to show internal directories.
Click to hide internal directories.