baask8sgroup

package
v0.0.0-...-b1a156a Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Zlib Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BucketName represents the name of the bucket where this service stores data.
	BucketName = "baask8s_groups"
)

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 baask8s data.

func NewService

func NewService(db *bolt.DB) (*Service, error)

NewService creates a new instance of a service.

func (*Service) Baask8sGroup

func (service *Service) Baask8sGroup(ID baasapi.Baask8sGroupID) (*baasapi.Baask8sGroup, error)

Baask8sGroup returns an baask8s group by ID.

func (*Service) Baask8sGroups

func (service *Service) Baask8sGroups() ([]baasapi.Baask8sGroup, error)

Baask8sGroups return an array containing all the baask8s groups.

func (*Service) CreateBaask8sGroup

func (service *Service) CreateBaask8sGroup(baask8sGroup *baasapi.Baask8sGroup) error

CreateBaask8sGroup assign an ID to a new baask8s group and saves it.

func (*Service) DeleteBaask8sGroup

func (service *Service) DeleteBaask8sGroup(ID baasapi.Baask8sGroupID) error

DeleteBaask8sGroup deletes an baask8s group.

func (*Service) UpdateBaask8sGroup

func (service *Service) UpdateBaask8sGroup(ID baasapi.Baask8sGroupID, baask8sGroup *baasapi.Baask8sGroup) error

UpdateBaask8sGroup updates an baask8s group.

Jump to

Keyboard shortcuts

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