Documentation
¶
Index ¶
- type ContainerRepo
- func (r *ContainerRepo) AllocatePort(containerID string, port int) error
- func (r *ContainerRepo) Create(container *model.Container) (*model.Container, error)
- func (r *ContainerRepo) Delete(id string) error
- func (r *ContainerRepo) FillPorts(minPort, maxPort int) error
- func (r *ContainerRepo) GetAll() ([]model.Container, error)
- func (r *ContainerRepo) GetByID(id string) (*model.Container, error)
- func (r *ContainerRepo) GetFreePort() (int, error)
- func (r *ContainerRepo) GetPortCount() (int, error)
- func (r *ContainerRepo) ReleasePort(containerID string) error
- func (r *ContainerRepo) Update(container *model.Container) (*model.Container, error)
- type TemplateRepo
- func (r *TemplateRepo) Create(template *model.Template) (*model.Template, error)
- func (r *TemplateRepo) Delete(id string) error
- func (r *TemplateRepo) GetAll() ([]*model.Template, error)
- func (r *TemplateRepo) GetByID(id string) (*model.Template, error)
- func (r *TemplateRepo) Update(template *model.Template) (*model.Template, error)
- type TokenRepo
- type UserRepo
- func (r *UserRepo) Create(user *model.User) (*model.User, error)
- func (r *UserRepo) Delete(id string) error
- func (r *UserRepo) GetAll() ([]*model.User, error)
- func (r *UserRepo) GetByID(id string) (*model.User, error)
- func (r *UserRepo) GetUnsafeByUsername(username string) (*model.User, error)
- func (r *UserRepo) GetUserByToken(token string) (*model.User, error)
- func (r *UserRepo) Update(user *model.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerRepo ¶
type ContainerRepo struct {
// contains filtered or unexported fields
}
func NewContainerRepo ¶
func (*ContainerRepo) AllocatePort ¶
func (r *ContainerRepo) AllocatePort(containerID string, port int) error
func (*ContainerRepo) Delete ¶
func (r *ContainerRepo) Delete(id string) error
func (*ContainerRepo) FillPorts ¶
func (r *ContainerRepo) FillPorts(minPort, maxPort int) error
func (*ContainerRepo) GetByID ¶
func (r *ContainerRepo) GetByID(id string) (*model.Container, error)
func (*ContainerRepo) GetFreePort ¶
func (r *ContainerRepo) GetFreePort() (int, error)
func (*ContainerRepo) GetPortCount ¶
func (r *ContainerRepo) GetPortCount() (int, error)
func (*ContainerRepo) ReleasePort ¶
func (r *ContainerRepo) ReleasePort(containerID string) error
type TemplateRepo ¶
type TemplateRepo struct {
// contains filtered or unexported fields
}
func NewTemplateRepo ¶
func (*TemplateRepo) Delete ¶
func (r *TemplateRepo) Delete(id string) error
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func (*UserRepo) GetUnsafeByUsername ¶
func (*UserRepo) GetUserByToken ¶
Click to show internal directories.
Click to hide internal directories.