role

package
v0.0.0-...-4560a53 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Zlib Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const BucketName = "roles"

BucketName represents the name of the bucket where this service stores data.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func (service *Service) Create(role *portainer.Role) error

CreateRole creates a new Role.

func (*Service) Tx

func (service *Service) Tx(tx portainer.Transaction) ServiceTx

type ServiceTx

func (ServiceTx) Create

func (service ServiceTx) Create(role *portainer.Role) error

CreateRole creates a new Role.

Jump to

Keyboard shortcuts

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