Documentation ¶
Index ¶
- Constants
- type Service
- func (service *Service) CreateTeam(team *baasapi.Team) error
- func (service *Service) DeleteTeam(ID baasapi.TeamID) error
- func (service *Service) Team(ID baasapi.TeamID) (*baasapi.Team, error)
- func (service *Service) TeamByName(name string) (*baasapi.Team, error)
- func (service *Service) Teams() ([]baasapi.Team, error)
- func (service *Service) UpdateTeam(ID baasapi.TeamID, team *baasapi.Team) error
Constants ¶
View Source
const (
// BucketName represents the name of the bucket where this service stores data.
BucketName = "teams"
)
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 ¶
NewService creates a new instance of a service.
func (*Service) CreateTeam ¶
CreateTeam creates a new Team.
func (*Service) DeleteTeam ¶
DeleteTeam deletes a Team.
func (*Service) TeamByName ¶
TeamByName returns a team by name.
func (*Service) UpdateTeam ¶
UpdateTeam saves a Team.
Click to show internal directories.
Click to hide internal directories.