Documentation ¶
Index ¶
- Variables
- func FromDomainApplication(app *domain.Application) *models.Application
- func FromDomainApplicationConfig(appID string, c *domain.ApplicationConfig) *models.ApplicationConfig
- func FromDomainArtifact(a *domain.Artifact) *models.Artifact
- func FromDomainAvailableDomain(ad *domain.AvailableDomain) *models.AvailableDomain
- func FromDomainAvailablePort(ap *domain.AvailablePort) *models.AvailablePort
- func FromDomainBuild(build *domain.Build) *models.Build
- func FromDomainEnvironment(env *domain.Environment) *models.Environment
- func FromDomainPortPublication(appID string, p *domain.PortPublication) *models.PortPublication
- func FromDomainRepository(repo *domain.Repository) *models.Repository
- func FromDomainRepositoryAuth(repositoryID string, auth *domain.RepositoryAuth) *models.RepositoryAuth
- func FromDomainUser(user *domain.User) *models.User
- func FromDomainUserKey(key *domain.UserKey) *models.UserKey
- func FromDomainWebsite(appID string, website *domain.Website) *models.Website
- func ToDomainApplication(app *models.Application) *domain.Application
- func ToDomainApplicationConfig(c *models.ApplicationConfig) domain.ApplicationConfig
- func ToDomainArtifact(a *models.Artifact) *domain.Artifact
- func ToDomainAvailableDomain(ad *models.AvailableDomain) *domain.AvailableDomain
- func ToDomainAvailablePort(ap *models.AvailablePort) *domain.AvailablePort
- func ToDomainBuild(build *models.Build) *domain.Build
- func ToDomainBuildConfig(c *models.ApplicationConfig) domain.BuildConfig
- func ToDomainEnvironment(env *models.Environment) *domain.Environment
- func ToDomainPortPublication(p *models.PortPublication) *domain.PortPublication
- func ToDomainRepository(repo *models.Repository) *domain.Repository
- func ToDomainRepositoryAuth(auth *models.RepositoryAuth) domain.RepositoryAuth
- func ToDomainRuntimeConfig(c *models.ApplicationConfig) domain.RuntimeConfig
- func ToDomainUser(user *models.User) *domain.User
- func ToDomainUserKey(key *models.UserKey) *domain.UserKey
- func ToDomainWebsite(website *models.Website) *domain.Website
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthTypeMapper = mapper.MustNewValueMapper(map[string]domain.AuthenticationType{ models.WebsitesAuthenticationOff: domain.AuthenticationTypeOff, models.WebsitesAuthenticationSoft: domain.AuthenticationTypeSoft, models.WebsitesAuthenticationHard: domain.AuthenticationTypeHard, })
View Source
var BuildStatusMapper = mapper.MustNewValueMapper(map[string]domain.BuildStatus{ models.BuildsStatusQueued: domain.BuildStatusQueued, models.BuildsStatusBuilding: domain.BuildStatusBuilding, models.BuildsStatusSucceeded: domain.BuildStatusSucceeded, models.BuildsStatusFailed: domain.BuildStatusFailed, models.BuildsStatusCanceled: domain.BuildStatusCanceled, models.BuildsStatusSkipped: domain.BuildStatusSkipped, })
View Source
var BuildTypeMapper = mapper.MustNewValueMapper(map[string]domain.BuildType{ models.ApplicationConfigBuildTypeRuntimeBuildpack: domain.BuildTypeRuntimeBuildpack, models.ApplicationConfigBuildTypeRuntimeCMD: domain.BuildTypeRuntimeCmd, models.ApplicationConfigBuildTypeRuntimeDockerfile: domain.BuildTypeRuntimeDockerfile, models.ApplicationConfigBuildTypeStaticCMD: domain.BuildTypeStaticCmd, models.ApplicationConfigBuildTypeStaticDockerfile: domain.BuildTypeStaticDockerfile, })
View Source
var ContainerStateMapper = mapper.MustNewValueMapper(map[string]domain.ContainerState{ models.ApplicationsContainerMissing: domain.ContainerStateMissing, models.ApplicationsContainerStarting: domain.ContainerStateStarting, models.ApplicationsContainerRunning: domain.ContainerStateRunning, models.ApplicationsContainerExited: domain.ContainerStateExited, models.ApplicationsContainerErrored: domain.ContainerStateErrored, models.ApplicationsContainerUnknown: domain.ContainerStateUnknown, })
View Source
var DeployTypeMapper = mapper.MustNewValueMapper(map[string]domain.DeployType{ models.ApplicationsDeployTypeRuntime: domain.DeployTypeRuntime, models.ApplicationsDeployTypeStatic: domain.DeployTypeStatic, })
View Source
var PortPublicationProtocolMapper = mapper.MustNewValueMapper(map[string]domain.PortPublicationProtocol{ models.PortPublicationsProtocolTCP: domain.PortPublicationProtocolTCP, models.PortPublicationsProtocolUDP: domain.PortPublicationProtocolUDP, })
View Source
var RepoAuthMethodMapper = mapper.MustNewValueMapper(map[string]domain.RepositoryAuthMethod{ models.RepositoryAuthMethodBasic: domain.RepositoryAuthMethodBasic, models.RepositoryAuthMethodSSH: domain.RepositoryAuthMethodSSH, })
Functions ¶
func FromDomainApplication ¶
func FromDomainApplication(app *domain.Application) *models.Application
func FromDomainApplicationConfig ¶
func FromDomainApplicationConfig(appID string, c *domain.ApplicationConfig) *models.ApplicationConfig
func FromDomainAvailableDomain ¶
func FromDomainAvailableDomain(ad *domain.AvailableDomain) *models.AvailableDomain
func FromDomainAvailablePort ¶ added in v0.3.0
func FromDomainAvailablePort(ap *domain.AvailablePort) *models.AvailablePort
func FromDomainEnvironment ¶
func FromDomainEnvironment(env *domain.Environment) *models.Environment
func FromDomainPortPublication ¶ added in v0.3.0
func FromDomainPortPublication(appID string, p *domain.PortPublication) *models.PortPublication
func FromDomainRepository ¶
func FromDomainRepository(repo *domain.Repository) *models.Repository
func FromDomainRepositoryAuth ¶
func FromDomainRepositoryAuth(repositoryID string, auth *domain.RepositoryAuth) *models.RepositoryAuth
func FromDomainWebsite ¶
func ToDomainApplication ¶
func ToDomainApplication(app *models.Application) *domain.Application
func ToDomainApplicationConfig ¶
func ToDomainApplicationConfig(c *models.ApplicationConfig) domain.ApplicationConfig
func ToDomainAvailableDomain ¶
func ToDomainAvailableDomain(ad *models.AvailableDomain) *domain.AvailableDomain
func ToDomainAvailablePort ¶ added in v0.3.0
func ToDomainAvailablePort(ap *models.AvailablePort) *domain.AvailablePort
func ToDomainBuildConfig ¶
func ToDomainBuildConfig(c *models.ApplicationConfig) domain.BuildConfig
func ToDomainEnvironment ¶
func ToDomainEnvironment(env *models.Environment) *domain.Environment
func ToDomainPortPublication ¶ added in v0.3.0
func ToDomainPortPublication(p *models.PortPublication) *domain.PortPublication
func ToDomainRepository ¶
func ToDomainRepository(repo *models.Repository) *domain.Repository
func ToDomainRepositoryAuth ¶
func ToDomainRepositoryAuth(auth *models.RepositoryAuth) domain.RepositoryAuth
func ToDomainRuntimeConfig ¶ added in v0.3.5
func ToDomainRuntimeConfig(c *models.ApplicationConfig) domain.RuntimeConfig
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.