rtconfgen

package
v1.45.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToLegacy

func ToLegacy(conf *runtimev1.RuntimeConfig, secretEnvs map[string][]byte) (*config.Runtime, error)

Types

type AppSecret

type AppSecret struct {
	Val *runtimev1.AppSecret
	// contains filtered or unexported fields
}

type Bucket added in v1.44.0

type Bucket struct {
	Val *runtimev1.Bucket
	// contains filtered or unexported fields
}

type BucketCluster added in v1.44.0

type BucketCluster struct {
	Val *runtimev1.BucketCluster
	// contains filtered or unexported fields
}

func (*BucketCluster) Bucket added in v1.44.0

func (c *BucketCluster) Bucket(p *runtimev1.Bucket) *Bucket

func (*BucketCluster) BucketFn added in v1.44.0

func (c *BucketCluster) BucketFn(rid string, fn func() *runtimev1.Bucket) *Bucket

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) DeployID

func (b *Builder) DeployID(id string) *Builder

func (*Builder) DeployedAt

func (b *Builder) DeployedAt(t time.Time) *Builder

func (*Builder) Deployment

func (b *Builder) Deployment(rid string) *Deployment

func (*Builder) EncorePlatform

func (b *Builder) EncorePlatform(encore *runtimev1.EncorePlatform) *Builder

func (*Builder) Env

func (b *Builder) Env(env *runtimev1.Environment) *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 Gateway

type Gateway struct {
	Val *runtimev1.Gateway
	// contains filtered or unexported fields
}

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) Gateway

func (b *InfraBuilder) Gateway(gw *runtimev1.Gateway) *Gateway

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

func (*InfraBuilder) SQLRole

func (b *InfraBuilder) SQLRole(p *runtimev1.SQLRole) *SQLRole

func (*InfraBuilder) SQLRoleFn

func (b *InfraBuilder) SQLRoleFn(rid string, fn func() *runtimev1.SQLRole) *SQLRole

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 RedisRole

type RedisRole struct {
	Val *runtimev1.RedisRole
	// contains filtered or unexported fields
}

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) SQLServer

func (c *SQLCluster) SQLServer(p *runtimev1.SQLServer) *SQLServer

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)

type SQLRole

type SQLRole struct {
	Val *runtimev1.SQLRole
	// contains filtered or unexported fields
}

type SQLServer

type SQLServer struct {
	Val *runtimev1.SQLServer
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL