Versions in this module Expand all Collapse all v0 v0.1.0 Aug 27, 2020 Changes in this version + func NewVersionCompatQueryResult(config VersionCompatQueryResultConfig) *versionCompatQueryResult + type Branch interface + CreateBranch func(branchName []byte) (*code_push.Branch, error) + DeleteBranch func(branchId []byte) error + GetBranch func(branchId []byte) (*code_push.Branch, error) + GetBranchEncToken func(branchId []byte) ([]byte, error) + type CtorConfig struct + Logger log.Logger + type DomainAdapter interface + Branch func(branchId []byte) (*code_push.Branch, error) + CreateBranch func(branch *code_push.Branch) error + CreateEnv func(env *code_push.Env) error + CreateVersion func(version *code_push.Version) error + DeleteBranch func(branchId []byte) error + DeleteEnv func(envId []byte) error + Env func(envId []byte) (*code_push.Env, error) + IsBranchAvailable func(branchId []byte) bool + IsBranchNameExisted func(branchName []byte) (bool, error) + IsEnvAvailable func(envId []byte) bool + IsEnvNameExisted func(branchId, envName []byte) (bool, error) + IsVersionAvailable func(envId, appVersion []byte) (bool, error) + Version func(envId, appVersion []byte) (*code_push.Version, error) + VersionsWithEnvId func(envId []byte) (code_push.VersionList, error) + type Env interface + CreateEnv func(branchId, envName []byte) (*code_push.Env, error) + DeleteEnv func(envId []byte) error + GetEnv func(envId []byte) (*code_push.Env, error) + GetEnvEncToken func(envId []byte) ([]byte, error) + type EnvVersionCollection struct + func NewEnvVersionCollection(config EnvVersionCollectionConfig) (*EnvVersionCollection, error) + func (e *EnvVersionCollection) GetVersion(appVersion *semver.SemVer) (*code_push.Version, error) + func (e *EnvVersionCollection) ListVersions() (code_push.VersionList, error) + func (e *EnvVersionCollection) ReleaseVersion(params VersionReleaseParams) error + func (e *EnvVersionCollection) VersionStrictCompatQuery(appVersion *semver.SemVer) (VersionCompatQueryResult, error) + type EnvVersionCollectionConfig struct + DomainAdapter DomainAdapter + EnvId []byte + type UseCase interface + func NewUseCase(config CtorConfig) UseCase + type Version interface + GetVersion func(envId, appVersion []byte) (*code_push.Version, error) + ListVersions func(envId []byte) (code_push.VersionList, error) + ReleaseVersion func(params VersionReleaseParams) error + VersionStrictCompatQuery func(envId, appVersion []byte) (VersionCompatQueryResult, error) + type VersionCompatQueryResult interface + AppVersion func() []byte + CanUpdateAppVersion func() []byte + LatestAppVersion func() []byte + MustUpdate func() bool + type VersionCompatQueryResultConfig struct + AppVersion *semver.SemVer + CanUpdateAppVersion *semver.SemVer + LatestAppVersion *semver.SemVer + MustUpdate bool + type VersionReleaseParams interface + AppVersion func() []byte + Changelog func() []byte + CompatAppVersion func() []byte + EnvId func() []byte + MustUpdate func() bool + PackageFileKey func() []byte