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 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 FromDomainRepositoryCommit(c *domain.RepositoryCommit) *models.RepositoryCommit
- func FromDomainRuntimeImage(r *domain.RuntimeImage) *models.RuntimeImage
- 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 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 ToDomainRepositoryCommit(c *models.RepositoryCommit) *domain.RepositoryCommit
- func ToDomainRuntimeConfig(c *models.ApplicationConfig) domain.RuntimeConfig
- func ToDomainRuntimeImage(r *models.RuntimeImage) domain.RuntimeImage
- func ToDomainStaticConfig(c *models.ApplicationConfig) domain.StaticConfig
- 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.ApplicationConfigBuildTypeStaticBuildpack: domain.BuildTypeStaticBuildpack, 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.ApplicationsContainerRestarting: domain.ContainerStateRestarting, 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 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 FromDomainRepositoryCommit ¶ added in v1.3.0
func FromDomainRepositoryCommit(c *domain.RepositoryCommit) *models.RepositoryCommit
func FromDomainRuntimeImage ¶ added in v1.5.0
func FromDomainRuntimeImage(r *domain.RuntimeImage) *models.RuntimeImage
func FromDomainWebsite ¶
func ToDomainApplication ¶
func ToDomainApplication(app *models.Application) *domain.Application
func ToDomainApplicationConfig ¶
func ToDomainApplicationConfig(c *models.ApplicationConfig) domain.ApplicationConfig
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 ToDomainRepositoryCommit ¶ added in v1.3.0
func ToDomainRepositoryCommit(c *models.RepositoryCommit) *domain.RepositoryCommit
func ToDomainRuntimeConfig ¶ added in v0.3.5
func ToDomainRuntimeConfig(c *models.ApplicationConfig) domain.RuntimeConfig
func ToDomainRuntimeImage ¶ added in v1.5.0
func ToDomainRuntimeImage(r *models.RuntimeImage) domain.RuntimeImage
func ToDomainStaticConfig ¶ added in v0.10.0
func ToDomainStaticConfig(c *models.ApplicationConfig) domain.StaticConfig
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.