Documentation
¶
Index ¶
- func NewVersionCompatQueryResult(config VersionCompatQueryResultConfig) *versionCompatQueryResult
- type Branch
- type CtorConfig
- type DomainAdapter
- type Env
- type EnvVersionCollection
- 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
- type UseCase
- type Version
- type VersionCompatQueryResult
- type VersionCompatQueryResultConfig
- type VersionReleaseParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVersionCompatQueryResult ¶
func NewVersionCompatQueryResult(config VersionCompatQueryResultConfig) *versionCompatQueryResult
Types ¶
type CtorConfig ¶
type CtorConfig struct { DomainAdapter Logger log.Logger }
type DomainAdapter ¶
type DomainAdapter interface { Branch(branchId []byte) (*code_push.Branch, error) CreateBranch(branch *code_push.Branch) error DeleteBranch(branchId []byte) error IsBranchAvailable(branchId []byte) bool IsBranchNameExisted(branchName []byte) (bool, error) Env(envId []byte) (*code_push.Env, error) CreateEnv(env *code_push.Env) error DeleteEnv(envId []byte) error IsEnvAvailable(envId []byte) bool IsEnvNameExisted(branchId, envName []byte) (bool, error) Version(envId, appVersion []byte) (*code_push.Version, error) VersionsWithEnvId(envId []byte) (code_push.VersionList, error) CreateVersion(version *code_push.Version) error IsVersionAvailable(envId, appVersion []byte) (bool, error) }
type EnvVersionCollection ¶
type EnvVersionCollection struct {
// contains filtered or unexported fields
}
func NewEnvVersionCollection ¶
func NewEnvVersionCollection(config EnvVersionCollectionConfig) (*EnvVersionCollection, error)
func (*EnvVersionCollection) GetVersion ¶
func (e *EnvVersionCollection) GetVersion(appVersion *semver.SemVer) (*code_push.Version, error)
func (*EnvVersionCollection) ListVersions ¶
func (e *EnvVersionCollection) ListVersions() (code_push.VersionList, error)
func (*EnvVersionCollection) ReleaseVersion ¶
func (e *EnvVersionCollection) ReleaseVersion(params VersionReleaseParams) error
func (*EnvVersionCollection) VersionStrictCompatQuery ¶
func (e *EnvVersionCollection) VersionStrictCompatQuery(appVersion *semver.SemVer) (VersionCompatQueryResult, error)
type EnvVersionCollectionConfig ¶
type EnvVersionCollectionConfig struct { EnvId []byte DomainAdapter DomainAdapter }
type UseCase ¶
func NewUseCase ¶
func NewUseCase(config CtorConfig) UseCase
type Version ¶
type Version interface { ReleaseVersion(params VersionReleaseParams) error GetVersion(envId, appVersion []byte) (*code_push.Version, error) ListVersions(envId []byte) (code_push.VersionList, error) VersionStrictCompatQuery(envId, appVersion []byte) (VersionCompatQueryResult, error) }
Click to show internal directories.
Click to hide internal directories.