Documentation ¶
Index ¶
- func ToLegacy(conf *runtimev1.RuntimeConfig, secretEnvs map[string][]byte) (*config.Runtime, error)
- type AppSecret
- type Bucket
- type BucketCluster
- type Builder
- func (b *Builder) AuthMethods(m []*runtimev1.ServiceAuth) *Builder
- func (b *Builder) DefaultGracefulShutdown(s *runtimev1.GracefulShutdown) *Builder
- func (b *Builder) DeployID(id string) *Builder
- func (b *Builder) DeployedAt(t time.Time) *Builder
- func (b *Builder) Deployment(rid string) *Deployment
- func (b *Builder) EncorePlatform(encore *runtimev1.EncorePlatform) *Builder
- func (b *Builder) Env(env *runtimev1.Environment) *Builder
- func (b *Builder) LogsProvider(p *runtimev1.LogsProvider)
- func (b *Builder) LogsProviderFn(rid string, fn func() *runtimev1.LogsProvider)
- func (b *Builder) MetricsProvider(p *runtimev1.MetricsProvider)
- func (b *Builder) MetricsProviderFn(rid string, fn func() *runtimev1.MetricsProvider)
- func (b *Builder) TracingProvider(p *runtimev1.TracingProvider)
- func (b *Builder) TracingProviderFn(rid string, fn func() *runtimev1.TracingProvider)
- type ClientCert
- type Deployment
- func (d *Deployment) BuildRuntimeConfig() (*runtimev1.RuntimeConfig, error)
- func (d *Deployment) DeployID(id string) *Deployment
- func (d *Deployment) DynamicExperiments(experiments []string) *Deployment
- func (d *Deployment) HostsGateways(names ...string) *Deployment
- func (d *Deployment) HostsServices(names ...string) *Deployment
- func (d *Deployment) OverrideDeployedAt(t time.Time) *Deployment
- func (d *Deployment) OverrideGracefulShutdown(s *runtimev1.GracefulShutdown) *Deployment
- func (d *Deployment) ReduceWithMeta(md *meta.Data) *Deployment
- func (d *Deployment) ServiceDiscovery(sd *runtimev1.ServiceDiscovery) *Deployment
- type Gateway
- type InfraBuilder
- func (b *InfraBuilder) AppSecret(p *runtimev1.AppSecret) *AppSecret
- func (b *InfraBuilder) AppSecretFn(rid string, fn func() *runtimev1.AppSecret) *AppSecret
- func (b *InfraBuilder) BucketCluster(p *runtimev1.BucketCluster) *BucketCluster
- func (b *InfraBuilder) BucketClusterFn(rid string, fn func() *runtimev1.BucketCluster) *BucketCluster
- func (b *InfraBuilder) ClientCert(rid string, fn func() *runtimev1.ClientCert) *ClientCert
- func (b *InfraBuilder) Gateway(gw *runtimev1.Gateway) *Gateway
- func (b *InfraBuilder) GatewayFn(rid string, fn func() *runtimev1.Gateway) *Gateway
- func (b *InfraBuilder) PubSubCluster(p *runtimev1.PubSubCluster) *PubSubCluster
- func (b *InfraBuilder) PubSubClusterFn(rid string, fn func() *runtimev1.PubSubCluster) *PubSubCluster
- func (b *InfraBuilder) RedisCluster(p *runtimev1.RedisCluster) *RedisCluster
- func (b *InfraBuilder) RedisClusterFn(rid string, fn func() *runtimev1.RedisCluster) *RedisCluster
- func (b *InfraBuilder) RedisRole(p *runtimev1.RedisRole) *RedisRole
- func (b *InfraBuilder) RedisRoleFn(rid string, fn func() *runtimev1.RedisRole) *RedisRole
- func (b *InfraBuilder) SQLCluster(p *runtimev1.SQLCluster) *SQLCluster
- func (b *InfraBuilder) SQLClusterFn(rid string, fn func() *runtimev1.SQLCluster) *SQLCluster
- func (b *InfraBuilder) SQLRole(p *runtimev1.SQLRole) *SQLRole
- func (b *InfraBuilder) SQLRoleFn(rid string, fn func() *runtimev1.SQLRole) *SQLRole
- type PubSubCluster
- func (c *PubSubCluster) PubSubSubscription(p *runtimev1.PubSubSubscription) *PubSubSubscription
- func (c *PubSubCluster) PubSubSubscriptionFn(rid string, fn func() *runtimev1.PubSubSubscription) *PubSubSubscription
- func (c *PubSubCluster) PubSubTopic(p *runtimev1.PubSubTopic) *PubSubTopic
- func (c *PubSubCluster) PubSubTopicFn(rid string, fn func() *runtimev1.PubSubTopic) *PubSubTopic
- type PubSubSubscription
- type PubSubTopic
- type RedisCluster
- func (c *RedisCluster) RedisDatabase(p *runtimev1.RedisDatabase) *RedisDatabase
- func (c *RedisCluster) RedisDatabaseFn(rid string, fn func() *runtimev1.RedisDatabase) *RedisDatabase
- func (c *RedisCluster) RedisServer(p *runtimev1.RedisServer) *RedisServer
- func (c *RedisCluster) RedisServerFn(rid string, fn func() *runtimev1.RedisServer) *RedisServer
- type RedisDatabase
- type RedisRole
- type RedisServer
- type ResourceID
- type SQLCluster
- func (c *SQLCluster) SQLDatabase(p *runtimev1.SQLDatabase) *SQLDatabase
- func (c *SQLCluster) SQLDatabaseFn(rid string, fn func() *runtimev1.SQLDatabase) *SQLDatabase
- func (c *SQLCluster) SQLServer(p *runtimev1.SQLServer) *SQLServer
- func (c *SQLCluster) SQLServerFn(rid string, fn func() *runtimev1.SQLServer) *SQLServer
- type SQLDatabase
- type SQLRole
- type SQLServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BucketCluster ¶ added in v1.44.0
type BucketCluster struct { Val *runtimev1.BucketCluster // contains filtered or unexported fields }
type Builder ¶
type Builder struct { Infra *InfraBuilder // contains filtered or unexported fields }
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) AuthMethods ¶
func (b *Builder) AuthMethods(m []*runtimev1.ServiceAuth) *Builder
func (*Builder) DefaultGracefulShutdown ¶
func (b *Builder) DefaultGracefulShutdown(s *runtimev1.GracefulShutdown) *Builder
func (*Builder) Deployment ¶
func (b *Builder) Deployment(rid string) *Deployment
func (*Builder) EncorePlatform ¶
func (b *Builder) EncorePlatform(encore *runtimev1.EncorePlatform) *Builder
func (*Builder) LogsProvider ¶
func (b *Builder) LogsProvider(p *runtimev1.LogsProvider)
func (*Builder) LogsProviderFn ¶
func (b *Builder) LogsProviderFn(rid string, fn func() *runtimev1.LogsProvider)
func (*Builder) MetricsProvider ¶
func (b *Builder) MetricsProvider(p *runtimev1.MetricsProvider)
func (*Builder) MetricsProviderFn ¶
func (b *Builder) MetricsProviderFn(rid string, fn func() *runtimev1.MetricsProvider)
func (*Builder) TracingProvider ¶
func (b *Builder) TracingProvider(p *runtimev1.TracingProvider)
func (*Builder) TracingProviderFn ¶
func (b *Builder) TracingProviderFn(rid string, fn func() *runtimev1.TracingProvider)
type ClientCert ¶
type ClientCert struct { Val *runtimev1.ClientCert // contains filtered or unexported fields }
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
func (*Deployment) BuildRuntimeConfig ¶
func (d *Deployment) BuildRuntimeConfig() (*runtimev1.RuntimeConfig, error)
func (*Deployment) DeployID ¶
func (d *Deployment) DeployID(id string) *Deployment
DeployID sets the deploy id.
func (*Deployment) DynamicExperiments ¶
func (d *Deployment) DynamicExperiments(experiments []string) *Deployment
func (*Deployment) HostsGateways ¶
func (d *Deployment) HostsGateways(names ...string) *Deployment
HostsGateways adds the given gateway names as being hosted by this deployment. It appends and doesn't overwrite any existing hosted gateways.
func (*Deployment) HostsServices ¶
func (d *Deployment) HostsServices(names ...string) *Deployment
HostsServices adds the given service names as being hosted by this deployment. It appends and doesn't overwrite any existing hosted services.
func (*Deployment) OverrideDeployedAt ¶
func (d *Deployment) OverrideDeployedAt(t time.Time) *Deployment
OverrideDeployedAt sets the time of deploy.
func (*Deployment) OverrideGracefulShutdown ¶
func (d *Deployment) OverrideGracefulShutdown(s *runtimev1.GracefulShutdown) *Deployment
OverrideGracefulShutdown sets the graceful shutdown behavior for this specific deployment. To set a default graceful shutdown shared for all deployments, use Builder.DefaultGracefulShutdown instead.
func (*Deployment) ReduceWithMeta ¶
func (d *Deployment) ReduceWithMeta(md *meta.Data) *Deployment
func (*Deployment) ServiceDiscovery ¶
func (d *Deployment) ServiceDiscovery(sd *runtimev1.ServiceDiscovery) *Deployment
type InfraBuilder ¶
type InfraBuilder struct {
// contains filtered or unexported fields
}
func (*InfraBuilder) AppSecret ¶
func (b *InfraBuilder) AppSecret(p *runtimev1.AppSecret) *AppSecret
func (*InfraBuilder) AppSecretFn ¶
func (b *InfraBuilder) AppSecretFn(rid string, fn func() *runtimev1.AppSecret) *AppSecret
func (*InfraBuilder) BucketCluster ¶ added in v1.44.0
func (b *InfraBuilder) BucketCluster(p *runtimev1.BucketCluster) *BucketCluster
func (*InfraBuilder) BucketClusterFn ¶ added in v1.44.0
func (b *InfraBuilder) BucketClusterFn(rid string, fn func() *runtimev1.BucketCluster) *BucketCluster
func (*InfraBuilder) ClientCert ¶
func (b *InfraBuilder) ClientCert(rid string, fn func() *runtimev1.ClientCert) *ClientCert
func (*InfraBuilder) GatewayFn ¶
func (b *InfraBuilder) GatewayFn(rid string, fn func() *runtimev1.Gateway) *Gateway
func (*InfraBuilder) PubSubCluster ¶
func (b *InfraBuilder) PubSubCluster(p *runtimev1.PubSubCluster) *PubSubCluster
func (*InfraBuilder) PubSubClusterFn ¶
func (b *InfraBuilder) PubSubClusterFn(rid string, fn func() *runtimev1.PubSubCluster) *PubSubCluster
func (*InfraBuilder) RedisCluster ¶
func (b *InfraBuilder) RedisCluster(p *runtimev1.RedisCluster) *RedisCluster
func (*InfraBuilder) RedisClusterFn ¶
func (b *InfraBuilder) RedisClusterFn(rid string, fn func() *runtimev1.RedisCluster) *RedisCluster
func (*InfraBuilder) RedisRole ¶
func (b *InfraBuilder) RedisRole(p *runtimev1.RedisRole) *RedisRole
func (*InfraBuilder) RedisRoleFn ¶
func (b *InfraBuilder) RedisRoleFn(rid string, fn func() *runtimev1.RedisRole) *RedisRole
func (*InfraBuilder) SQLCluster ¶
func (b *InfraBuilder) SQLCluster(p *runtimev1.SQLCluster) *SQLCluster
func (*InfraBuilder) SQLClusterFn ¶
func (b *InfraBuilder) SQLClusterFn(rid string, fn func() *runtimev1.SQLCluster) *SQLCluster
type PubSubCluster ¶
type PubSubCluster struct { Val *runtimev1.PubSubCluster // contains filtered or unexported fields }
func (*PubSubCluster) PubSubSubscription ¶
func (c *PubSubCluster) PubSubSubscription(p *runtimev1.PubSubSubscription) *PubSubSubscription
func (*PubSubCluster) PubSubSubscriptionFn ¶
func (c *PubSubCluster) PubSubSubscriptionFn(rid string, fn func() *runtimev1.PubSubSubscription) *PubSubSubscription
func (*PubSubCluster) PubSubTopic ¶
func (c *PubSubCluster) PubSubTopic(p *runtimev1.PubSubTopic) *PubSubTopic
func (*PubSubCluster) PubSubTopicFn ¶
func (c *PubSubCluster) PubSubTopicFn(rid string, fn func() *runtimev1.PubSubTopic) *PubSubTopic
type PubSubSubscription ¶
type PubSubSubscription struct { Val *runtimev1.PubSubSubscription // contains filtered or unexported fields }
type PubSubTopic ¶
type PubSubTopic struct { Val *runtimev1.PubSubTopic // contains filtered or unexported fields }
type RedisCluster ¶
type RedisCluster struct { Val *runtimev1.RedisCluster // contains filtered or unexported fields }
func (*RedisCluster) RedisDatabase ¶
func (c *RedisCluster) RedisDatabase(p *runtimev1.RedisDatabase) *RedisDatabase
func (*RedisCluster) RedisDatabaseFn ¶
func (c *RedisCluster) RedisDatabaseFn(rid string, fn func() *runtimev1.RedisDatabase) *RedisDatabase
func (*RedisCluster) RedisServer ¶
func (c *RedisCluster) RedisServer(p *runtimev1.RedisServer) *RedisServer
func (*RedisCluster) RedisServerFn ¶
func (c *RedisCluster) RedisServerFn(rid string, fn func() *runtimev1.RedisServer) *RedisServer
type RedisDatabase ¶
type RedisDatabase struct { Val *runtimev1.RedisDatabase // contains filtered or unexported fields }
func (*RedisDatabase) AddConnectionPool ¶
func (c *RedisDatabase) AddConnectionPool(p *runtimev1.RedisConnectionPool)
type RedisServer ¶
type RedisServer struct { Val *runtimev1.RedisServer // contains filtered or unexported fields }
type ResourceID ¶
type ResourceID interface { comparable fmt.Stringer }
type SQLCluster ¶
type SQLCluster struct { Val *runtimev1.SQLCluster // contains filtered or unexported fields }
func (*SQLCluster) SQLDatabase ¶
func (c *SQLCluster) SQLDatabase(p *runtimev1.SQLDatabase) *SQLDatabase
func (*SQLCluster) SQLDatabaseFn ¶
func (c *SQLCluster) SQLDatabaseFn(rid string, fn func() *runtimev1.SQLDatabase) *SQLDatabase
func (*SQLCluster) SQLServerFn ¶
func (c *SQLCluster) SQLServerFn(rid string, fn func() *runtimev1.SQLServer) *SQLServer
type SQLDatabase ¶
type SQLDatabase struct { Val *runtimev1.SQLDatabase // contains filtered or unexported fields }
func (*SQLDatabase) AddConnectionPool ¶
func (c *SQLDatabase) AddConnectionPool(p *runtimev1.SQLConnectionPool)
Click to show internal directories.
Click to hide internal directories.