Documentation ¶
Index ¶
- Variables
- func BuildResourceMap(ctx context.Context, dependencies []*resources.ResourceDependency) (map[string]RawJSONObject, error)
- func ComputeStackAndImages(ctx context.Context, planner planning.Planner, servers planning.Servers) (*planning.Stack, []compute.Computable[ResolvedServerImages], error)
- func DeferredIngress(planner planning.Planner, stack *schema.Stack) compute.Computable[[]*schema.IngressFragment]
- func MakeBuildPlan(ctx context.Context, rc runtime.Planner, server planning.PlannedServer, ...) (build.Plan, error)
- func MaybeRenderBlock(env cfg.Context, cluster runtime.ClusterNamespace, render bool) execution.WaitHandler
- func MaybeRenderClusterBlock(env cfg.Context, cluster runtime.Cluster, ...) execution.WaitHandler
- func MergeIngresses(block ...compute.Computable[[]*schema.IngressFragment]) compute.Computable[[]*schema.IngressFragment]
- func PlanIngressDeployment(rc runtime.Planner, c compute.Computable[*ComputeIngressResult]) compute.Computable[*runtime.DeploymentPlan]
- func PlanResourceProviderInvocation(ctx context.Context, secs is.SecretsSource, planner runtime.Planner, ...) ([]*schema.SerializedInvocation, error)
- func PrepareDeployServers(ctx context.Context, planner planning.Planner, focus ...planning.Server) (compute.Computable[*Plan], error)
- func PrepareDeployStack(ctx context.Context, planner planning.Planner, stack *planning.Stack, ...) (compute.Computable[*Plan], error)
- func PrepareRunOpts(ctx context.Context, stack *planning.Stack, srv planning.PlannedServer, ...) error
- func RegisterDeployOps()
- func Serialize(ws *schema.Workspace, env *schema.Environment, stack *schema.Stack, ...) *schema.DeployPlan
- func TestStackToRuntimeConfig(stack *planning.StackWithIngress, sutServers []string) (*runtime.RuntimeConfig, error)
- type ComputeIngressResult
- type InvokeResourceProvider
- type Plan
- type PlanningOutput
- type PreparedDeployable
- type RawJSONObject
- type ResolvedBinary
- type ResolvedServerImages
- type ResourceMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AlsoDeployIngress = true PushPrebuiltsToRegistry = true MirrorPrebuiltToRegistry = false )
View Source
var GarbageCollectProviders = true
View Source
var RunCodegen = true
Functions ¶
func BuildResourceMap ¶
func BuildResourceMap(ctx context.Context, dependencies []*resources.ResourceDependency) (map[string]RawJSONObject, error)
func ComputeStackAndImages ¶
func DeferredIngress ¶ added in v0.0.117
func DeferredIngress(planner planning.Planner, stack *schema.Stack) compute.Computable[[]*schema.IngressFragment]
func MakeBuildPlan ¶ added in v0.0.82
func MaybeRenderBlock ¶
func MaybeRenderBlock(env cfg.Context, cluster runtime.ClusterNamespace, render bool) execution.WaitHandler
func MaybeRenderClusterBlock ¶ added in v0.0.124
func MergeIngresses ¶ added in v0.0.117
func MergeIngresses(block ...compute.Computable[[]*schema.IngressFragment]) compute.Computable[[]*schema.IngressFragment]
func PlanIngressDeployment ¶
func PlanIngressDeployment(rc runtime.Planner, c compute.Computable[*ComputeIngressResult]) compute.Computable[*runtime.DeploymentPlan]
func PlanResourceProviderInvocation ¶
func PlanResourceProviderInvocation(ctx context.Context, secs is.SecretsSource, planner runtime.Planner, invoke *InvokeResourceProvider) ([]*schema.SerializedInvocation, error)
func PrepareDeployServers ¶
func PrepareDeployStack ¶
func PrepareDeployStack(ctx context.Context, planner planning.Planner, stack *planning.Stack, prepared ...compute.Computable[PreparedDeployable]) (compute.Computable[*Plan], error)
func PrepareRunOpts ¶ added in v0.0.157
func PrepareRunOpts(ctx context.Context, stack *planning.Stack, srv planning.PlannedServer, imgs *ResolvedServerImages, out *runtime.DeployableSpec) error
func RegisterDeployOps ¶
func RegisterDeployOps()
func Serialize ¶
func Serialize(ws *schema.Workspace, env *schema.Environment, stack *schema.Stack, computed *Plan, focus schema.PackageList) *schema.DeployPlan
func TestStackToRuntimeConfig ¶
func TestStackToRuntimeConfig(stack *planning.StackWithIngress, sutServers []string) (*runtime.RuntimeConfig, error)
Types ¶
type ComputeIngressResult ¶
type ComputeIngressResult struct { Fragments []*schema.IngressFragment // contains filtered or unexported fields }
type InvokeResourceProvider ¶
type InvokeResourceProvider struct { ResourceInstanceId string BinaryRef *schema.PackageRef BinaryLabels []*schema.Label BinaryImageId oci.ImageID ResourceClass *schema.ResourceClass ResourceProvider *schema.ResourceProvider InstanceTypeSource *protos2.FileDescriptorSetAndDeps ResourceDependencies []*resources.ResourceDependency SecretResources []runtime.SecretResourceDependency // contains filtered or unexported fields }
type Plan ¶
type Plan struct { Deployer *execution.Plan ComputedStack *planning.Stack IngressFragments []*schema.IngressFragment Computed *schema.ComputedConfigurations Hints []string // Optional messages to pass to the user. NamespaceReference string }
type PlanningOutput ¶ added in v0.0.117
type PlanningOutput struct {
InstanceSerializedJSON string `json:"instance_json"`
}
type PreparedDeployable ¶ added in v0.0.83
type PreparedDeployable struct { Ref *schema.PackageRef Template runtime.DeployableSpec SealedCtx pkggraph.SealedContext Resources []pkggraph.ResourceInstance }
func (PreparedDeployable) PackageRef ¶ added in v0.0.83
func (pd PreparedDeployable) PackageRef() *schema.PackageRef
func (PreparedDeployable) SealedContext ¶ added in v0.0.83
func (pd PreparedDeployable) SealedContext() pkggraph.SealedContext
type RawJSONObject ¶
type ResolvedBinary ¶
type ResolvedBinary struct { PackageRef *schema.PackageRef Binary oci.ImageID BinaryConfig *schema.BinaryConfig }
type ResolvedServerImages ¶
type ResolvedServerImages struct { PackageRef *schema.PackageRef Binary oci.ImageID BinaryImage compute.Computable[oci.ResolvableImage] PrebuiltBinary bool Config *oci.ImageID Sidecars []ResolvedBinary }
type ResourceMap ¶ added in v0.0.82
type ResourceMap map[string]ownedResourceInstances // The key is a canonical PackageRef.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.