bolt

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BranchService

type BranchService struct {
	// contains filtered or unexported fields
}

func (*BranchService) Branch

func (s *BranchService) Branch(branchId []byte) (*daemon.Branch, error)

func (*BranchService) CreateBranch

func (s *BranchService) CreateBranch(branch *daemon.Branch) error

func (*BranchService) DeleteBranch

func (s *BranchService) DeleteBranch(branchId []byte) error

func (*BranchService) IsBranchAvailable

func (s *BranchService) IsBranchAvailable(branchId []byte) bool

func (*BranchService) IsBranchNameExisted

func (s *BranchService) IsBranchNameExisted(branchName []byte) (bool, error)

type Client

type Client struct {
	Path string
	log.Logger
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) BranchService

func (c *Client) BranchService() *BranchService

func (*Client) Close

func (c *Client) Close() error

func (*Client) DomainService

func (c *Client) DomainService() domain.Service

func (*Client) EnvService

func (c *Client) EnvService() *EnvService

func (*Client) FileService

func (c *Client) FileService() *FileService

func (*Client) Open

func (c *Client) Open() error

func (*Client) VersionService

func (c *Client) VersionService() *VersionService

type EnvService

type EnvService struct {
	// contains filtered or unexported fields
}

func (*EnvService) CreateEnv

func (s *EnvService) CreateEnv(env *daemon.Env) error

func (*EnvService) DeleteEnv

func (s *EnvService) DeleteEnv(envId []byte) error

func (*EnvService) Env

func (s *EnvService) Env(envId []byte) (*daemon.Env, error)

func (*EnvService) GetEnvsWithBranchId

func (s *EnvService) GetEnvsWithBranchId(branchId string) ([]*daemon.Env, error)

func (*EnvService) IsEnvAvailable

func (s *EnvService) IsEnvAvailable(envId []byte) bool

func (*EnvService) IsEnvNameExisted

func (s *EnvService) IsEnvNameExisted(branchId, envName []byte) (bool, error)

type FileService

type FileService struct {
	// contains filtered or unexported fields
}

func (*FileService) File

func (s *FileService) File(fileKey string) (*daemon.File, error)

func (*FileService) InsertFile

func (s *FileService) InsertFile(file *daemon.File) error

func (*FileService) IsFileKeyExisted

func (s *FileService) IsFileKeyExisted(fileKey string) bool

type VersionService

type VersionService struct {
	// contains filtered or unexported fields
}

func (*VersionService) CreateVersion

func (s *VersionService) CreateVersion(version *daemon.Version) error

func (*VersionService) IsVersionAvailable

func (s *VersionService) IsVersionAvailable(envId, appVersion []byte) (bool, error)

func (*VersionService) Version

func (s *VersionService) Version(envId, appVersion []byte) (*daemon.Version, error)

func (*VersionService) VersionsWithEnvId

func (s *VersionService) VersionsWithEnvId(envId []byte) (daemon.VersionList, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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