Documentation ¶
Index ¶
- Variables
- func FromPBAdditionalLink(link *pb.AdditionalLink) *domain.AdditionalLink
- func FromPBApplication(app *pb.Application) *domain.Application
- func FromPBApplicationConfig(c *pb.ApplicationConfig) domain.ApplicationConfig
- func FromPBArtifact(artifact *pb.Artifact) *domain.Artifact
- func FromPBAutoShutdown(as *pb.AutoShutdownConfig) domain.AutoShutdownConfig
- func FromPBAvailableDomain(ad *pb.AvailableDomain) *domain.AvailableDomain
- func FromPBAvailablePort(ap *pb.AvailablePort) *domain.AvailablePort
- func FromPBBuild(build *pb.Build) *domain.Build
- func FromPBBuildConfig(c *pb.ApplicationConfig) domain.BuildConfig
- func FromPBBuilderSystemInfo(info *pb.BuilderSystemInfo) *domain.BuilderSystemInfo
- func FromPBCreateWebsiteRequest(req *pb.CreateWebsiteRequest) *domain.Website
- func FromPBEnvironment(env *pb.ApplicationEnvVar) *domain.Environment
- func FromPBNullTimestamp(t *pb.NullTimestamp) optional.Of[time.Time]
- func FromPBPortPublication(p *pb.PortPublication) *domain.PortPublication
- func FromPBRepository(repo *pb.Repository) *domain.Repository
- func FromPBRepositoryAuth(req *pb.CreateRepositoryAuth) optional.Of[apiserver.CreateRepositoryAuth]
- func FromPBRepositoryPrivate(repo *pb.RepositoryPrivate) *domain.Repository
- func FromPBRuntimeConfig(c *pb.RuntimeConfig) domain.RuntimeConfig
- func FromPBStartBuildRequest(req *pb.StartBuildRequest) *domain.StartBuildRequest
- func FromPBStaticConfig(c *pb.StaticConfig) domain.StaticConfig
- func FromPBSystemInfo(i *pb.SystemInfo) *domain.SystemInfo
- func FromPBUpdateOwners(req *pb.UpdateApplicationRequest_UpdateOwners) []string
- func FromPBUpdatePorts(p *pb.UpdateApplicationRequest_UpdatePorts) []*domain.PortPublication
- func FromPBUpdateRepositoryOwners(req *pb.UpdateRepositoryRequest_UpdateOwners) []string
- func FromPBUpdateWebsites(req *pb.UpdateApplicationRequest_UpdateWebsites) []*domain.Website
- func FromPBWebsite(website *pb.Website) *domain.Website
- func ToPBAdditionalLink(link *domain.AdditionalLink) *pb.AdditionalLink
- func ToPBApplication(app *domain.Application, latestBuild *domain.Build) *pb.Application
- func ToPBApplicationConfig(c domain.ApplicationConfig) *pb.ApplicationConfig
- func ToPBApplicationMetric(metric *domain.AppMetric) *pb.ApplicationMetric
- func ToPBApplicationOutput(l *domain.ContainerLog) *pb.ApplicationOutput
- func ToPBArtifact(artifact *domain.Artifact) *pb.Artifact
- func ToPBAutoShutdown(as domain.AutoShutdownConfig) *pb.AutoShutdownConfig
- func ToPBAvailableDomain(ad *domain.AvailableDomain) *pb.AvailableDomain
- func ToPBAvailablePort(ap *domain.AvailablePort) *pb.AvailablePort
- func ToPBBuild(build *domain.Build) *pb.Build
- func ToPBBuilderSystemInfo(info *domain.BuilderSystemInfo) *pb.BuilderSystemInfo
- func ToPBEnvironment(env *domain.Environment) *pb.ApplicationEnvVar
- func ToPBNullTimestamp(t optional.Of[time.Time]) *pb.NullTimestamp
- func ToPBPortPublication(p *domain.PortPublication) *pb.PortPublication
- func ToPBRepository(repo *domain.Repository) *pb.Repository
- func ToPBRepositoryPrivate(repo *domain.Repository) *pb.RepositoryPrivate
- func ToPBRuntimeConfig(c *domain.RuntimeConfig) *pb.RuntimeConfig
- func ToPBRuntimeImage(image *domain.RuntimeImage) *pb.RuntimeImage
- func ToPBSimpleCommit(c *domain.RepositoryCommit) *pb.SimpleCommit
- func ToPBStartBuildRequest(req *domain.StartBuildRequest) *pb.StartBuildRequest
- func ToPBStaticConfig(c *domain.StaticConfig) *pb.StaticConfig
- func ToPBSystemInfo(i *domain.SystemInfo) *pb.SystemInfo
- func ToPBUser(user *domain.User, avatarBaseURL domain.AvatarBaseURL) *pb.User
- func ToPBUserKey(key *domain.UserKey) *pb.UserKey
- func ToPBWebsite(website *domain.Website) *pb.Website
Constants ¶
This section is empty.
Variables ¶
View Source
var AppScopeMapper = mapper.MustNewValueMapper(map[pb.GetApplicationsRequest_Scope]apiserver.GetAppScopeType{ pb.GetApplicationsRequest_MINE: apiserver.GetAppScopeMine, pb.GetApplicationsRequest_ALL: apiserver.GetAppScopeAll, pb.GetApplicationsRequest_REPOSITORY: apiserver.GetAppScopeRepository, })
View Source
var AuthTypeMapper = mapper.MustNewValueMapper(map[domain.AuthenticationType]pb.AuthenticationType{ domain.AuthenticationTypeOff: pb.AuthenticationType_OFF, domain.AuthenticationTypeSoft: pb.AuthenticationType_SOFT, domain.AuthenticationTypeHard: pb.AuthenticationType_HARD, })
View Source
var BuildStatusMapper = mapper.MustNewValueMapper(map[domain.BuildStatus]pb.BuildStatus{ domain.BuildStatusQueued: pb.BuildStatus_QUEUED, domain.BuildStatusBuilding: pb.BuildStatus_BUILDING, domain.BuildStatusSucceeded: pb.BuildStatus_SUCCEEDED, domain.BuildStatusFailed: pb.BuildStatus_FAILED, domain.BuildStatusCanceled: pb.BuildStatus_CANCELLED, domain.BuildStatusSkipped: pb.BuildStatus_SKIPPED, })
View Source
var ContainerStateMapper = mapper.MustNewValueMapper(map[domain.ContainerState]pb.Application_ContainerState{ domain.ContainerStateMissing: pb.Application_MISSING, domain.ContainerStateStarting: pb.Application_STARTING, domain.ContainerStateRestarting: pb.Application_RESTARTING, domain.ContainerStateRunning: pb.Application_RUNNING, domain.ContainerStateExited: pb.Application_EXITED, domain.ContainerStateErrored: pb.Application_ERRORED, domain.ContainerStateUnknown: pb.Application_UNKNOWN, })
View Source
var DeployTypeMapper = mapper.MustNewValueMapper(map[domain.DeployType]pb.DeployType{ domain.DeployTypeRuntime: pb.DeployType_RUNTIME, domain.DeployTypeStatic: pb.DeployType_STATIC, })
View Source
var PortPublicationProtocolMapper = mapper.MustNewValueMapper(map[domain.PortPublicationProtocol]pb.PortPublicationProtocol{ domain.PortPublicationProtocolTCP: pb.PortPublicationProtocol_TCP, domain.PortPublicationProtocolUDP: pb.PortPublicationProtocol_UDP, })
View Source
var RepoAuthMethodMapper = mapper.MustNewValueMapper(map[domain.RepositoryAuthMethod]pb.Repository_AuthMethod{ domain.RepositoryAuthMethodBasic: pb.Repository_BASIC, domain.RepositoryAuthMethodSSH: pb.Repository_SSH, })
View Source
var RepoScopeMapper = mapper.MustNewValueMapper(map[apiserver.GetRepoScope]pb.GetRepositoriesRequest_Scope{ apiserver.GetRepoScopeMine: pb.GetRepositoriesRequest_MINE, apiserver.GetRepoScopeCreatable: pb.GetRepositoriesRequest_CREATABLE, apiserver.GetRepoScopePublic: pb.GetRepositoriesRequest_PUBLIC, apiserver.GetRepoScopeAll: pb.GetRepositoriesRequest_ALL, })
Functions ¶
func FromPBAdditionalLink ¶ added in v1.4.0
func FromPBAdditionalLink(link *pb.AdditionalLink) *domain.AdditionalLink
func FromPBApplication ¶ added in v1.1.0
func FromPBApplication(app *pb.Application) *domain.Application
func FromPBApplicationConfig ¶
func FromPBApplicationConfig(c *pb.ApplicationConfig) domain.ApplicationConfig
func FromPBAutoShutdown ¶ added in v1.6.0
func FromPBAutoShutdown(as *pb.AutoShutdownConfig) domain.AutoShutdownConfig
func FromPBAvailableDomain ¶
func FromPBAvailableDomain(ad *pb.AvailableDomain) *domain.AvailableDomain
func FromPBAvailablePort ¶ added in v0.3.0
func FromPBAvailablePort(ap *pb.AvailablePort) *domain.AvailablePort
func FromPBBuildConfig ¶
func FromPBBuildConfig(c *pb.ApplicationConfig) domain.BuildConfig
func FromPBBuilderSystemInfo ¶ added in v1.1.0
func FromPBBuilderSystemInfo(info *pb.BuilderSystemInfo) *domain.BuilderSystemInfo
func FromPBCreateWebsiteRequest ¶
func FromPBCreateWebsiteRequest(req *pb.CreateWebsiteRequest) *domain.Website
func FromPBEnvironment ¶ added in v1.1.0
func FromPBEnvironment(env *pb.ApplicationEnvVar) *domain.Environment
func FromPBNullTimestamp ¶ added in v1.1.0
func FromPBPortPublication ¶ added in v0.3.0
func FromPBPortPublication(p *pb.PortPublication) *domain.PortPublication
func FromPBRepository ¶ added in v1.1.0
func FromPBRepository(repo *pb.Repository) *domain.Repository
func FromPBRepositoryAuth ¶
func FromPBRepositoryAuth(req *pb.CreateRepositoryAuth) optional.Of[apiserver.CreateRepositoryAuth]
func FromPBRepositoryPrivate ¶ added in v1.1.0
func FromPBRepositoryPrivate(repo *pb.RepositoryPrivate) *domain.Repository
func FromPBRuntimeConfig ¶ added in v0.3.5
func FromPBRuntimeConfig(c *pb.RuntimeConfig) domain.RuntimeConfig
func FromPBStartBuildRequest ¶ added in v1.1.0
func FromPBStartBuildRequest(req *pb.StartBuildRequest) *domain.StartBuildRequest
func FromPBStaticConfig ¶ added in v0.10.0
func FromPBStaticConfig(c *pb.StaticConfig) domain.StaticConfig
func FromPBSystemInfo ¶ added in v0.10.1
func FromPBSystemInfo(i *pb.SystemInfo) *domain.SystemInfo
func FromPBUpdateOwners ¶ added in v0.7.13
func FromPBUpdateOwners(req *pb.UpdateApplicationRequest_UpdateOwners) []string
func FromPBUpdatePorts ¶ added in v0.7.13
func FromPBUpdatePorts(p *pb.UpdateApplicationRequest_UpdatePorts) []*domain.PortPublication
func FromPBUpdateRepositoryOwners ¶ added in v0.7.13
func FromPBUpdateRepositoryOwners(req *pb.UpdateRepositoryRequest_UpdateOwners) []string
func FromPBUpdateWebsites ¶ added in v0.7.13
func FromPBUpdateWebsites(req *pb.UpdateApplicationRequest_UpdateWebsites) []*domain.Website
func ToPBAdditionalLink ¶ added in v1.4.0
func ToPBAdditionalLink(link *domain.AdditionalLink) *pb.AdditionalLink
func ToPBApplication ¶
func ToPBApplication(app *domain.Application, latestBuild *domain.Build) *pb.Application
func ToPBApplicationConfig ¶
func ToPBApplicationConfig(c domain.ApplicationConfig) *pb.ApplicationConfig
func ToPBApplicationMetric ¶ added in v0.15.0
func ToPBApplicationMetric(metric *domain.AppMetric) *pb.ApplicationMetric
func ToPBApplicationOutput ¶
func ToPBApplicationOutput(l *domain.ContainerLog) *pb.ApplicationOutput
func ToPBAutoShutdown ¶ added in v1.6.0
func ToPBAutoShutdown(as domain.AutoShutdownConfig) *pb.AutoShutdownConfig
func ToPBAvailableDomain ¶
func ToPBAvailableDomain(ad *domain.AvailableDomain) *pb.AvailableDomain
func ToPBAvailablePort ¶ added in v0.3.0
func ToPBAvailablePort(ap *domain.AvailablePort) *pb.AvailablePort
func ToPBBuilderSystemInfo ¶ added in v1.1.0
func ToPBBuilderSystemInfo(info *domain.BuilderSystemInfo) *pb.BuilderSystemInfo
func ToPBEnvironment ¶
func ToPBEnvironment(env *domain.Environment) *pb.ApplicationEnvVar
func ToPBNullTimestamp ¶
func ToPBPortPublication ¶ added in v0.9.7
func ToPBPortPublication(p *domain.PortPublication) *pb.PortPublication
func ToPBRepository ¶
func ToPBRepository(repo *domain.Repository) *pb.Repository
func ToPBRepositoryPrivate ¶ added in v1.1.0
func ToPBRepositoryPrivate(repo *domain.Repository) *pb.RepositoryPrivate
func ToPBRuntimeConfig ¶ added in v0.3.5
func ToPBRuntimeConfig(c *domain.RuntimeConfig) *pb.RuntimeConfig
func ToPBRuntimeImage ¶ added in v1.5.0
func ToPBRuntimeImage(image *domain.RuntimeImage) *pb.RuntimeImage
func ToPBSimpleCommit ¶ added in v1.3.0
func ToPBSimpleCommit(c *domain.RepositoryCommit) *pb.SimpleCommit
func ToPBStartBuildRequest ¶ added in v1.1.0
func ToPBStartBuildRequest(req *domain.StartBuildRequest) *pb.StartBuildRequest
func ToPBStaticConfig ¶ added in v0.10.0
func ToPBStaticConfig(c *domain.StaticConfig) *pb.StaticConfig
func ToPBSystemInfo ¶ added in v0.10.1
func ToPBSystemInfo(i *domain.SystemInfo) *pb.SystemInfo
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.