Versions in this module Expand all Collapse all v0 v0.1.1 Oct 16, 2020 Changes in this version + type Auth interface + AuthBranch func(ctx context.Context, branchId, timestamp, nonce, sign []byte) error + AuthBranchWithJWT func(ctx context.Context, token string) (branchId []byte, err error) + AuthEnv func(ctx context.Context, envId, timestamp, nonce, sign []byte) error + AuthRootUser func(ctx context.Context, name, pwd string) error + EvictToken func(ctx context.Context, token []byte) error + SignTokenForBranch func(ctx context.Context, branchId []byte) ([]byte, error) + SignTokenForEnv func(ctx context.Context, envId []byte) ([]byte, error) + SignTokenForRootUser func(ctx context.Context) ([]byte, error) + VerifyTokenForBranch func(ctx context.Context, token []byte) (branchId []byte, err error) + VerifyTokenForEnv func(ctx context.Context, token []byte) (envId []byte, err error) + VerifyTokenForRootUser func(ctx context.Context, token []byte) error + type Branch interface + CreateBranch func(ctx context.Context, branchName []byte) (*gateway.Branch, error) + DeleteBranch func(ctx context.Context, branchId []byte) error + GetBranch func(ctx context.Context, branchId string) (*gateway.Branch, error) + type CtorConfig struct + Options *options + type DaemonAdapter interface + CreateBranch func(ctx context.Context, branchName []byte) (*pb.BranchResponse, error) + CreateEnv func(ctx context.Context, branchId, envId, envName, envEncToken []byte) (*pb.EnvResponse, error) + DeleteBranch func(ctx context.Context, branchId []byte) error + DeleteEnv func(ctx context.Context, envId []byte) error + EvictAccessToken func(ctx context.Context, token string) error + GenerateAccessToken func(ctx context.Context, issuer pb.AccessTokenIssuer, subject string) ([]byte, error) + GetBranch func(ctx context.Context, branchId string) (*pb.BranchResponse, error) + GetBranchEncToken func(ctx context.Context, branchId []byte) ([]byte, error) + GetEnv func(ctx context.Context, envId []byte) (*pb.EnvResponse, error) + GetEnvEncToken func(ctx context.Context, envId []byte) ([]byte, error) + GetEnvsWithBranchId func(ctx context.Context, branchId string) ([]*pb.EnvResponse, error) + GetSource func(ctx context.Context, fileKey []byte) (*pb.FileSource, error) + GetVersion func(ctx context.Context, envId, appVersion []byte) (*pb.VersionResponse, error) + GetVersionList func(ctx context.Context, envId []byte) ([]*pb.VersionResponse, error) + ReleaseVersion func(ctx context.Context, params *pb.VersionReleaseRequest) error + UploadPkg func(ctx context.Context, source multipart.File) (fileKey []byte, err error) + VerifyAccessToken func(ctx context.Context, token string) (subject []byte, err error) + VersionStrictCompatQuery func(ctx context.Context, envId, appVersion []byte) (*pb.VersionStrictCompatQueryResponse, error) + type Env interface + CreateEnv func(ctx context.Context, branchId, envId, envName, envEncToken []byte) (*gateway.Env, error) + DeleteEnv func(ctx context.Context, envId []byte) error + GetEnv func(ctx context.Context, envId []byte) (*gateway.Env, error) + GetEnvEncToken func(ctx context.Context, envId []byte) ([]byte, error) + GetEnvsWithBranchId func(ctx context.Context, branchId string) ([]*gateway.Env, error) + type Filer interface + FileDownload func(ctx context.Context, fileId []byte) ([]byte, error) + type Uploader interface + UploadPkg func(ctx context.Context, stream multipart.File) (fileKey []byte, err error) + type UseCase interface + func New(configFn func(*CtorConfig)) UseCase + type Version interface + GetVersion func(ctx context.Context, envId, appVersion []byte) (*gateway.Version, error) + GetVersionList func(ctx context.Context, envId []byte) ([]*gateway.Version, error) + ReleaseVersion func(ctx context.Context, params *gateway.VersionReleaseParams) error + VersionPkgSource func(ctx context.Context, envId, appVersion string) (*gateway.FileSource, error) + VersionStrictCompatQuery func(ctx context.Context, envId, appVersion []byte) (*gateway.VersionCompatQueryResult, error)