Documentation ¶
Index ¶
- Variables
- func FromPBApplicationConfig(c *pb.ApplicationConfig) domain.ApplicationConfig
- func FromPBAvailableDomain(ad *pb.AvailableDomain) *domain.AvailableDomain
- func FromPBAvailablePort(ap *pb.AvailablePort) *domain.AvailablePort
- func FromPBBuildConfig(c *pb.ApplicationConfig) domain.BuildConfig
- func FromPBCreateWebsiteRequest(req *pb.CreateWebsiteRequest) *domain.Website
- func FromPBPortPublication(p *pb.PortPublication) *domain.PortPublication
- func FromPBRepositoryAuth(req *pb.CreateRepositoryAuth) optional.Of[domain.RepositoryAuth]
- func FromPBRuntimeConfig(c *pb.RuntimeConfig) domain.RuntimeConfig
- func ToPBApplication(app *domain.Application) *pb.Application
- func ToPBApplicationConfig(c domain.ApplicationConfig) *pb.ApplicationConfig
- func ToPBApplicationOutput(l *domain.ContainerLog) *pb.ApplicationOutput
- func ToPBArtifact(artifact *domain.Artifact) *pb.Artifact
- func ToPBAvailableDomain(ad *domain.AvailableDomain) *pb.AvailableDomain
- func ToPBAvailablePort(ap *domain.AvailablePort) *pb.AvailablePort
- func ToPBBuild(build *domain.Build) *pb.Build
- func ToPBEnvironment(env *domain.Environment) *pb.ApplicationEnvVar
- func ToPBNullTimestamp(t optional.Of[time.Time]) *pb.NullTimestamp
- func ToPBRepository(repo *domain.Repository) *pb.Repository
- func ToPBRuntimeConfig(c *domain.RuntimeConfig) *pb.RuntimeConfig
- func ToPBUnavailablePort(up *domain.UnavailablePort) *pb.UnavailablePort
- func ToPBUser(user *domain.User) *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 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.Build_BuildStatus{ domain.BuildStatusQueued: pb.Build_QUEUED, domain.BuildStatusBuilding: pb.Build_BUILDING, domain.BuildStatusSucceeded: pb.Build_SUCCEEDED, domain.BuildStatusFailed: pb.Build_FAILED, domain.BuildStatusCanceled: pb.Build_CANCELLED, domain.BuildStatusSkipped: pb.Build_SKIPPED, })
View Source
var ContainerStateMapper = mapper.MustNewValueMapper(map[domain.ContainerState]pb.Application_ContainerState{ domain.ContainerStateMissing: pb.Application_MISSING, domain.ContainerStateStarting: pb.Application_STARTING, 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, })
Functions ¶
func FromPBApplicationConfig ¶
func FromPBApplicationConfig(c *pb.ApplicationConfig) domain.ApplicationConfig
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 FromPBCreateWebsiteRequest ¶
func FromPBCreateWebsiteRequest(req *pb.CreateWebsiteRequest) *domain.Website
func FromPBPortPublication ¶ added in v0.3.0
func FromPBPortPublication(p *pb.PortPublication) *domain.PortPublication
func FromPBRepositoryAuth ¶
func FromPBRepositoryAuth(req *pb.CreateRepositoryAuth) optional.Of[domain.RepositoryAuth]
func FromPBRuntimeConfig ¶ added in v0.3.5
func FromPBRuntimeConfig(c *pb.RuntimeConfig) domain.RuntimeConfig
func ToPBApplication ¶
func ToPBApplication(app *domain.Application) *pb.Application
func ToPBApplicationConfig ¶
func ToPBApplicationConfig(c domain.ApplicationConfig) *pb.ApplicationConfig
func ToPBApplicationOutput ¶
func ToPBApplicationOutput(l *domain.ContainerLog) *pb.ApplicationOutput
func ToPBAvailableDomain ¶
func ToPBAvailableDomain(ad *domain.AvailableDomain) *pb.AvailableDomain
func ToPBAvailablePort ¶ added in v0.3.0
func ToPBAvailablePort(ap *domain.AvailablePort) *pb.AvailablePort
func ToPBEnvironment ¶
func ToPBEnvironment(env *domain.Environment) *pb.ApplicationEnvVar
func ToPBNullTimestamp ¶
func ToPBRepository ¶
func ToPBRepository(repo *domain.Repository) *pb.Repository
func ToPBRuntimeConfig ¶ added in v0.3.5
func ToPBRuntimeConfig(c *domain.RuntimeConfig) *pb.RuntimeConfig
func ToPBUnavailablePort ¶ added in v0.3.0
func ToPBUnavailablePort(up *domain.UnavailablePort) *pb.UnavailablePort
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.