Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BucketName represents the name of the bucket where this service stores data. BucketName = "registry" Identifier = "user" )
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 endpoint data.
func NewService ¶
NewService creates a new instance of a service.
func (*Service) CreateDatabase ¶
CreateDatabase create bucket
func (*Service) GetUser ¶
func (service *Service) GetUser() (*model.RegistryUser, error)
GetUser get registry user
func (*Service) TruncateDatabase ¶
TruncateDatabase delete bucket
func (*Service) UpdateUser ¶
func (service *Service) UpdateUser(user *model.RegistryUser) error
UpdateUser update registry user
Click to show internal directories.
Click to hide internal directories.