Documentation
¶
Index ¶
- Constants
- Variables
- func ActionProto(action ChangeAction) planv1.Change_Action
- func Ask(message string, question Question) error
- func AttrApp(name string) progress.Attr
- func AttrBytes(n int64) progress.Attr
- func AttrDurationMS(d time.Duration) progress.Attr
- func AttrResourceAction(action ChangeAction) progress.Attr
- func AttrResourceCount(n int) progress.Attr
- func AttrResourceName(name string) progress.Attr
- func AttrResourceType(typ string) progress.Attr
- func BindingMessage(binding Binding) (*bindingsv1.Binding, error)
- func BootstrapCommand(tier environment.Tier) string
- func ClassifyError(err error) string
- func ComputeNames(computes []Compute) []string
- func Decode[T any](vendor Vendor, options Options) (T, error)
- func DecodeEdgeOptions[T any](kind edge.Kind, options Options) (T, error)
- func GrantMessages(grants []Grant) []*variablestorev1.Grant
- func IsWorkerApp(app string, workers []WorkerSpec) bool
- func KnownCompute(name string) bool
- func ListFunctions(app *contractv1.ManifestApp) []*contractv1.ManifestFunction
- func NewOriginDispatchEnv() map[string]string
- func NewRouteTableEnv(app *AppSpec, routeTable string) map[string]string
- func ProductionHostnames(app AppEntry) []string
- func ProtoBindingType(kind BindingType) bindingsv1.BindingType
- func PublishedBindingMessage(binding Binding) (*variablestorev1.PublishedBinding, error)
- func RefusalError(err error) error
- func RefuseConcurrency(concurrency int32) error
- func RefuseTransforms(vendor Vendor, transforms []string) error
- func RefuseUnconsentedChanges(shown, fresh Plan) error
- func RefusedCode(err error) (refusal.Code, bool)
- func RequiredProperties(t BindingType) []string
- func ResourceEnvName(kind BindingType, resource string) string
- func Resumable(err error) error
- func ResumableMessage(err error) (string, bool)
- func RollUpProto(changes []*planv1.Change) planv1.Change_Action
- func ValidChangeAction(action ChangeAction) bool
- func VerifyProperties(binding Binding) error
- func WithDetailUnavailable(reason string) string
- func WorkerCeilingMessages(ceilings []WorkerCeiling) []*contractv1.WorkerCeiling
- func WriteLenPrefixed(h io.Writer, b []byte)
- type AppContainer
- type AppEntry
- type AppRelease
- type AppSpec
- type AppUsage
- type AppValues
- type ArtifactRef
- type ArtifactStore
- type BatchPolicy
- type Binding
- type BindingAccessHooks
- type BindingGrant
- type BindingProxy
- type BindingProxyRequest
- type BindingSession
- type BindingType
- type Bindings
- type Bootstrap
- type BootstrapDescription
- type BootstrapPart
- type BootstrapRequest
- type BootstrapStack
- type BucketSpec
- type Certificate
- type CertificateHealth
- type CertificateRequest
- type Certificates
- type Change
- type ChangeAction
- type ChangeGroup
- type ChannelSpec
- type Compute
- type Connector
- type ConnectorAddress
- type ConnectorInstall
- type ConnectorTarget
- type ConsumerSpec
- type ContainerReleaseHooks
- type CostHooks
- type Credentials
- type DNS
- type DNSKind
- type DemotedReleases
- type DeployPreflight
- type DeploySpec
- type EdgeProgramRequest
- type EdgeRouteTable
- type Edges
- type EnvSourceHooks
- type ExpiringRecord
- type Facts
- type Function
- type FunctionSpec
- type Grant
- type GrantCondition
- type Hooks
- type HostCheck
- type HostCheckRequest
- type HostVerdict
- type ISRSpec
- type ImagePush
- type ImagePushes
- func (p ImagePushes) GoString() string
- func (p ImagePushes) ImageRef(app string) string
- func (p ImagePushes) PushMissing(ctx context.Context, progress progress.Log) error
- func (p ImagePushes) PushRemoved(ctx context.Context, progress progress.Log) error
- func (p ImagePushes) Rows(ctx context.Context) ([]Change, error)
- func (p ImagePushes) String() string
- type ImageStore
- type InstalledConnector
- type Instances
- type KVSpec
- type Lane
- type Lease
- type LiveApp
- type LiveApps
- type Liveness
- type LogEntry
- type LogNotice
- type LogNoticeKind
- type LogQuery
- type LogStream
- type LogTarget
- type LogTargetsMissing
- type Logs
- type Namespace
- type Options
- type OriginGuard
- type Pairing
- type Part
- type PartShape
- type PhysicalResource
- type Plan
- type PortForward
- type PortForwardRequest
- type PostgresSpec
- type PreflightHooks
- type Principal
- type PrincipalDetail
- type ProbeFailure
- type ProjectRemovalHooks
- type ProjectResourcesRequest
- type PromotedReleases
- type Provider
- type Question
- type QuestionRefusal
- type RealtimeSpec
- type RecordPurpose
- type RegistryTarget
- type Release
- type Resource
- type RetirementHooks
- type RetryPolicy
- type Routers
- type RoutingSpec
- type RunStatus
- type Runtime
- type SecretRef
- type Settings
- type ShapeRequest
- type StackDestroy
- type StackKind
- type StackRef
- type StackResources
- type StackResult
- type StackSpec
- type Stacks
- type TierIdentity
- type TopicSpec
- type Vendor
- type WantedPartError
- type WebIdentity
- type WebIdentityFacts
- type WebIdentityTrust
- type WorkerCeiling
- type WorkerSpec
- type Wrapped
- type WrittenBy
Constants ¶
View Source
const ( ErrorKindCanceled = "canceled" ErrorKindTimeout = "timeout" ErrorKindFailed = "failed" )
View Source
const ( MaxNamespaceLength = 44 NamespaceEnvVar = "OCEL_NAMESPACE" )
View Source
const ( StackGroupKind = "stack" ParameterGroupKind = "parameters" ReasonCurrent = "already current" )
View Source
const ( PropertyHost = "host" PropertyPort = "port" PropertyDatabase = "database" PropertyUsername = "username" PropertyPassword = "password" PropertyBucket = "bucket" PropertyPublicBaseURL = "publicBaseUrl" PropertyPublic = "public" PropertyEndpoint = "endpoint" PropertyTLS = "tls" PropertyTLSMode = "tlsMode" PropertyTLSCA = "tlsCa" PropertyTLSServerName = "tlsServerName" PropertyCAPEM = "caPem" PropertyURL = "url" PropertySigningKey = "signingKey" PropertyVerifyKey = "verifyKey" )
View Source
const ( GrantPasswordSecret = "password secret" GrantIAMAuthentication = "iam authentication" )
View Source
const BasePart = "base"
View Source
const ConnectorConfigEnvVar = "OCEL_CONNECTOR_CONFIG_JSON"
View Source
const ConsoleTrustPart = "console-trust"
View Source
const CostSource = "ocel"
View Source
const DefaultIdempotencyKeyLife = 30 * 24 * time.Hour
View Source
const (
FingerprintHexLen = 12
)
View Source
const ImageKind = "image"
View Source
const MaxConcurrency = 1000
View Source
const VariablesKeyPart = "variables-key"
Variables ¶
View Source
var ErrUnscopedGrant = errors.New("unscoped grant")
Functions ¶
func ActionProto ¶
func ActionProto(action ChangeAction) planv1.Change_Action
func AttrResourceAction ¶
func AttrResourceAction(action ChangeAction) progress.Attr
func AttrResourceCount ¶
func AttrResourceName ¶
func AttrResourceType ¶
func BindingMessage ¶
func BindingMessage(binding Binding) (*bindingsv1.Binding, error)
func BootstrapCommand ¶
func BootstrapCommand(tier environment.Tier) string
func ClassifyError ¶
func ComputeNames ¶
func GrantMessages ¶
func GrantMessages(grants []Grant) []*variablestorev1.Grant
func IsWorkerApp ¶
func IsWorkerApp(app string, workers []WorkerSpec) bool
func KnownCompute ¶
func ListFunctions ¶
func ListFunctions(app *contractv1.ManifestApp) []*contractv1.ManifestFunction
func NewOriginDispatchEnv ¶
func ProductionHostnames ¶
func ProtoBindingType ¶
func ProtoBindingType(kind BindingType) bindingsv1.BindingType
func PublishedBindingMessage ¶
func PublishedBindingMessage(binding Binding) (*variablestorev1.PublishedBinding, error)
func RefusalError ¶
func RefuseConcurrency ¶
func RefuseTransforms ¶
func RequiredProperties ¶
func RequiredProperties(t BindingType) []string
func ResourceEnvName ¶
func ResourceEnvName(kind BindingType, resource string) string
func ResumableMessage ¶
func RollUpProto ¶
func RollUpProto(changes []*planv1.Change) planv1.Change_Action
func ValidChangeAction ¶
func ValidChangeAction(action ChangeAction) bool
func VerifyProperties ¶
func WithDetailUnavailable ¶
func WorkerCeilingMessages ¶
func WorkerCeilingMessages(ceilings []WorkerCeiling) []*contractv1.WorkerCeiling
func WriteLenPrefixed ¶
Types ¶
type AppContainer ¶
type AppContainer struct {
Name string `json:"name"`
Physical string `json:"physical,omitempty"`
URL string `json:"url,omitempty"`
DeploymentURL string `json:"deploymentUrl,omitempty"`
Image string `json:"image,omitempty"`
Revision string `json:"revision,omitempty"`
DiscoveredHealthCheckPath string `json:"discoveredHealthCheckPath,omitempty"`
}
type AppEntry ¶
type AppEntry struct {
App string
Stack naming.StackName
Release Release
Manifest *contractv1.ManifestApp
Image string
HealthCheckPath string
Arch string
Instances Instances
Workers []WorkerSpec
}
func (AppEntry) IsBuiltFromFunction ¶
type AppRelease ¶
type AppSpec ¶
type AppSpec struct {
App string
Framework string
RootFunction string
BuildID string
Compute Compute
Router router.Kind
Functions []FunctionSpec
Image string
HealthCheckPath string
DiscoveredHealthCheckPath string
Arch string
Instances Instances
Workers []WorkerSpec
DeploymentWorkers []WorkerSpec
Values AppValues
Grants []Binding
Routing *RoutingSpec
OcelRouteTable *RoutingSpec
EdgeRouteTable *EdgeRouteTable
Guard *OriginGuard
ISR *ISRSpec
Gate *gate.Gate
StorageCoordinate naming.Coordinate
Static *edge.Static
OutputRoot string
Proxied bool
Topics []Resource
}
func (*AppSpec) IsBuiltAsFunctions ¶
func (*AppSpec) IsBuiltFromFunction ¶
type AppValues ¶
type ArtifactRef ¶
type ArtifactRef struct {
Tier environment.Tier `json:"tier,omitempty"`
Key string `json:"key,omitempty"`
}
type ArtifactStore ¶
type ArtifactStore interface {
Put(ctx context.Context, ref ArtifactRef, body io.Reader) error
Has(ctx context.Context, ref ArtifactRef) (bool, error)
Open(ctx context.Context, ref ArtifactRef) (io.ReadCloser, error)
RemoveObjects(ctx context.Context, tier environment.Tier, scope naming.StorageScope, kinds []naming.ObjectKind, progress progress.Log) error
}
type BatchPolicy ¶
type Binding ¶
type Binding struct {
Type BindingType `json:"type"`
Name string `json:"name"`
Resource string `json:"resource,omitempty"`
Source string `json:"source,omitempty"`
Properties map[string]string `json:"properties,omitempty"`
Grants []Grant `json:"grants,omitempty"`
Version int64 `json:"version,omitempty"`
}
func BindingOf ¶
func BindingOf(message *bindingsv1.Binding) Binding
func PublishedBindingOf ¶
func PublishedBindingOf(message *variablestorev1.PublishedBinding) Binding
func (Binding) Endpointed ¶
func (Binding) HasIAMAuthentication ¶
func (Binding) PasswordSecret ¶
type BindingAccessHooks ¶
type BindingAccessHooks struct {
ForwardPorts func(ctx context.Context, req PortForwardRequest, progress progress.Log) ([]PortForward, error)
ServeProxy func(ctx context.Context, req BindingProxyRequest, progress progress.Log) (BindingProxy, error)
}
type BindingGrant ¶
type BindingProxy ¶
type BindingProxy struct {
Address string
Sessions []BindingSession
Unserved []string
Close func()
}
type BindingProxyRequest ¶
type BindingProxyRequest struct {
Slug string
Tier environment.Tier
Env string
Grants []BindingGrant
ReportFailure func(error)
}
type BindingSession ¶
type BindingType ¶
type BindingType string
const ( BindingPostgres BindingType = "postgres" BindingBucket BindingType = "bucket" BindingTopic BindingType = "topic" BindingTask BindingType = "task" BindingKV BindingType = "kv" BindingRealtime BindingType = "realtime" BindingCustom BindingType = "custom" )
func BindingTypeFromProto ¶
func BindingTypeFromProto(encoded bindingsv1.BindingType) (BindingType, bool)
type Bootstrap ¶
type Bootstrap interface {
Parts() []Part
Describe(ctx context.Context, tier environment.Tier) (BootstrapDescription, error)
Plan(ctx context.Context, req BootstrapRequest) (Plan, error)
Apply(ctx context.Context, req BootstrapRequest, progress progress.Log) error
PlanRemove(ctx context.Context, tier environment.Tier) (Plan, error)
Remove(ctx context.Context, tier environment.Tier, progress progress.Log) error
DescribeParts(ctx context.Context, described BootstrapDescription) ([]BootstrapPart, error)
}
type BootstrapDescription ¶
type BootstrapDescription struct {
Tier environment.Tier
Present bool
Stacks []BootstrapStack
Unfinished bool
Identity *TierIdentity
Trust *WebIdentityTrust
}
type BootstrapPart ¶
type BootstrapRequest ¶
type BootstrapRequest struct {
Tier environment.Tier
Parts []string
Remove []string
Force bool
RefuseReplacements bool
WrittenBy WrittenBy
Trust *WebIdentityTrust
}
type BootstrapStack ¶
type BucketSpec ¶
type Certificate ¶
type Certificate struct {
ID string `json:"id,omitempty"`
Requested bool `json:"requested,omitempty"`
Written []edge.Record `json:"written,omitempty"`
Manual []edge.Record `json:"manual,omitempty"`
}
func (Certificate) Issued ¶
func (c Certificate) Issued() bool
type CertificateHealth ¶
type CertificateRequest ¶
type CertificateRequest struct {
Tier environment.Tier
Kind edge.Kind
Router router.Kind
Hostname string
Current Certificate
Prove func(ctx context.Context, cert Certificate, records []edge.Record) (Certificate, error)
Progress progress.Log
}
type Certificates ¶
type Certificates interface {
Issue(ctx context.Context, req CertificateRequest) (Certificate, error)
Inspect(ctx context.Context, kind edge.Kind, answering router.Kind, hostname string, cert Certificate) (CertificateHealth, error)
Discard(ctx context.Context, cert Certificate, progress progress.Log) error
}
type Change ¶
type Change struct {
Kind string
Name string
Action ChangeAction
Reason string
Slow bool
}
type ChangeAction ¶
type ChangeAction string
const ( ActionCreate ChangeAction = "create" ActionUpdate ChangeAction = "update" ActionReplace ChangeAction = "replace" ActionDelete ChangeAction = "delete" ActionDisableThenDelete ChangeAction = "disable-then-delete" ActionKeep ChangeAction = "keep" ActionAdopt ChangeAction = "adopt" )
func ActionFromProto ¶
func ActionFromProto(drawn planv1.Change_Action) (ChangeAction, bool)
func KeepOrCreate ¶
func KeepOrCreate(exists bool) ChangeAction
func RollUp ¶
func RollUp(changes []Change) (ChangeAction, string)
func (ChangeAction) Writes ¶
func (a ChangeAction) Writes() bool
type ChangeGroup ¶
type ChannelSpec ¶
type ChannelSpec struct {
Pattern string
Wildcard bool
Schema string
Subscribe realtime.ChannelAccess
Publish realtime.ChannelAccess
}
type Compute ¶
type Compute string
func ComputeOf ¶
func ComputeOf(app *contractv1.ManifestApp) Compute
type ConnectorAddress ¶
type ConnectorInstall ¶
type ConnectorTarget ¶
type ConnectorTarget struct {
Fingerprint string
Hostname string
OS string
Arch string
Installed *InstalledConnector
}
type ConsumerSpec ¶
type ConsumerSpec struct {
Name string
Worker string
Exclusive bool
Retry RetryPolicy
Concurrency int
MaxDuration time.Duration
Lanes []Lane
Batch *BatchPolicy
}
type ContainerReleaseHooks ¶
type CostHooks ¶
type CostHooks struct {
Shape func(ctx context.Context, req ShapeRequest) (*costv1.ResourceSet, error)
Estimate func(ctx context.Context, req *costv1.PriceRequest) (*costv1.Estimate, error)
}
type Credentials ¶
type Credentials interface {
Whoami(ctx context.Context) (Principal, error)
Permissions(purpose edge.CredentialPurpose, tier environment.Tier) (edge.CredentialDocument, error)
}
type DemotedReleases ¶
type DemotedReleases struct {
Slug string
Tier environment.Tier
Env string
Previous []AppRelease
Older []AppRelease
}
type DeployPreflight ¶
type DeploySpec ¶
type EdgeProgramRequest ¶
type EdgeProgramRequest struct {
Tier environment.Tier
Kind edge.Kind
}
type EdgeRouteTable ¶
type EdgeRouteTable struct {
Location router.RouteTableLocation
Table []byte
}
type EnvSourceHooks ¶
type ExpiringRecord ¶
type ExpiringRecord struct {
Purpose RecordPurpose
Topic string
Key string
Value json.RawMessage
ExpiresAt time.Time
}
type Facts ¶
type Facts struct {
Vendor Vendor
Bindings []BindingType
Computes []Compute
Edges []edge.Kind
DefaultEdge edge.Kind
Pairings []Pairing
DNSKinds []DNSKind
RendersTransforms bool
StoresArtifacts bool
RunsTunnels bool
WorkerCeilings []WorkerCeiling
RetainsContainerReleases bool
RunsGates bool
RunsFunctionsAsImages bool
MaxFunctionBytes int64
WebIdentity *WebIdentityFacts
}
type FunctionSpec ¶
type Grant ¶
type Grant struct {
Label string `json:"label,omitempty"`
Actions []string `json:"actions,omitempty"`
Resources []string `json:"resources,omitempty"`
Conditions []GrantCondition `json:"conditions,omitempty"`
}
func GrantsOf ¶
func GrantsOf(grants []*variablestorev1.Grant) []Grant
type GrantCondition ¶
type Hooks ¶
type Hooks struct {
Preflight *PreflightHooks
InfraPreflight *PreflightHooks
CheckBucket func(ctx context.Context, record *bindingsv1.BucketProperties, public bool, origins []string) ([]string, error)
ProgramEdge func(ctx context.Context, req EdgeProgramRequest) (edge.Program, error)
EnsureImageRegistry func(ctx context.Context, tier environment.Tier) (RegistryTarget, error)
OpenRegistryImages func(ctx context.Context, target RegistryTarget) (ImageStore, error)
OpenDirectImages func(ctx context.Context) (ImageStore, error)
CheckHost func(ctx context.Context, req HostCheckRequest) ([]HostCheck, error)
BindingAccess *BindingAccessHooks
EnvSource *EnvSourceHooks
Cost *CostHooks
Retirement *RetirementHooks
ContainerReleases *ContainerReleaseHooks
ProjectRemoval *ProjectRemovalHooks
ListProjectResources func(ctx context.Context, req ProjectResourcesRequest) ([]PhysicalResource, error)
}
type HostCheck ¶
type HostCheck struct {
Subject string
Verdict HostVerdict
Finding string
Fix string
}
type HostCheckRequest ¶
type HostCheckRequest struct {
Tier environment.Tier
Edge edge.Kind
Hostnames []string
}
type HostVerdict ¶
type HostVerdict int
const ( HostPass HostVerdict = iota HostNeedsAction HostFail )
type ImagePushes ¶
type ImagePushes struct {
Store ImageStore
Registry RegistryTarget
Pushes []ImagePush
}
func (ImagePushes) GoString ¶
func (p ImagePushes) GoString() string
func (ImagePushes) ImageRef ¶
func (p ImagePushes) ImageRef(app string) string
func (ImagePushes) PushMissing ¶
func (ImagePushes) PushRemoved ¶
func (ImagePushes) String ¶
func (p ImagePushes) String() string
type ImageStore ¶
type InstalledConnector ¶
type LogNotice ¶
type LogNotice struct {
Kind LogNoticeKind
Omitted int
Message string
Target LogTarget
}
type LogNoticeKind ¶
type LogNoticeKind int
const ( LogSampled LogNoticeKind = iota + 1 LogReconnected LogSourceGone )
type LogTarget ¶
type LogTarget struct {
App, Release, Source string
Function *Function
Container *AppContainer
}
type LogTargetsMissing ¶
type LogTargetsMissing struct{ Targets []LogTarget }
func (LogTargetsMissing) Error ¶
func (e LogTargetsMissing) Error() string
type Namespace ¶
type Namespace string
const DefaultNamespace Namespace = "ocel"
func NamespaceFromEnv ¶
func ParseNamespace ¶
type OriginGuard ¶
type OriginGuard struct {
RootFunction string
}
type PhysicalResource ¶
type Plan ¶
type Plan struct {
Groups []ChangeGroup
}
type PortForward ¶
type PortForwardRequest ¶
type PortForwardRequest struct {
Tier environment.Tier
Bindings []Binding
ReportFailure func(error)
}
type PostgresSpec ¶
type PostgresSpec struct {
Version string
}
type PreflightHooks ¶
type PreflightHooks struct {
Plan func(ctx context.Context, pre DeployPreflight) (Plan, error)
Apply func(ctx context.Context, pre DeployPreflight) error
}
type PrincipalDetail ¶
type ProbeFailure ¶
type ProjectRemovalHooks ¶
type ProjectRemovalHooks struct {
Plan func(ctx context.Context, tier environment.Tier, project string) ([]ChangeGroup, error)
Remove func(ctx context.Context, tier environment.Tier, project string, progress progress.Log) error
}
type ProjectResourcesRequest ¶
type ProjectResourcesRequest struct {
Tier environment.Tier
Project string
EdgeKind edge.Kind
EdgeStack edge.StackState
Routers map[router.Kind]router.StackState
DNSKind DNSKind
WrittenRecords []edge.Record
Certificates []Certificate
Images []string
}
type PromotedReleases ¶
type PromotedReleases struct {
Slug string
Tier environment.Tier
Env string
Releases []AppRelease
}
type Provider ¶
type Provider interface {
Facts() Facts
Hooks() Hooks
Bootstrap(kind edge.Kind) (Bootstrap, error)
Stacks() Stacks
Artifacts() ArtifactStore
KeyValues() records.Store
Cipher() seal.Cipher
Credentials() Credentials
Edges() Edges
Routers() Routers
DNS() DNS
Certificates() Certificates
Connector() Connector
Runtime() Runtime
Liveness() Liveness
Logs() Logs
}
type Question ¶
type Question struct {
Finding string
Prompt string
Remedy string
Confirm func(ctx context.Context) error
}
func QuestionOf ¶
type QuestionRefusal ¶
func (QuestionRefusal) Unwrap ¶
func (r QuestionRefusal) Unwrap() error
type RealtimeSpec ¶
type RealtimeSpec struct {
Channels []ChannelSpec
TokenTTL time.Duration
}
type RecordPurpose ¶
type RecordPurpose string
const ( RecordIdempotency RecordPurpose = "idempotency" RecordDebounce RecordPurpose = "debounce" )
type RegistryTarget ¶
func (RegistryTarget) GoString ¶
func (t RegistryTarget) GoString() string
func (RegistryTarget) ImageRef ¶
func (t RegistryTarget) ImageRef(repository, tag string) string
func (RegistryTarget) Named ¶
func (t RegistryTarget) Named() bool
func (RegistryTarget) String ¶
func (t RegistryTarget) String() string
type Release ¶
type Release struct {
// contains filtered or unexported fields
}
func NewRelease ¶
func ParseRelease ¶
func (Release) Fingerprint ¶
func (Release) Token ¶
func (r Release) Token() naming.ReleaseToken
type Resource ¶
type Resource struct {
Name string
Declared string
Type BindingType
Binding string
Postgres *PostgresSpec
Bucket *BucketSpec
KV *KVSpec
Topic *TopicSpec
Realtime *RealtimeSpec
}
type RetirementHooks ¶
type RetryPolicy ¶
type RoutingSpec ¶
type RoutingSpec struct {
RootFunction string
RouteTable router.RouteTable
}
type Runtime ¶
type Runtime interface {
Arch(ctx context.Context, app, declared string) (string, error)
Binary(ctx context.Context, arch string) ([]byte, error)
FunctionBase(ctx context.Context, framework buildoutput.Framework) (v1.Image, error)
FunctionFiles(ctx context.Context, framework buildoutput.Framework) (map[string][]byte, error)
FunctionBuildPaths(framework buildoutput.Framework) []string
}
type ShapeRequest ¶
type ShapeRequest struct {
Deploy DeploySpec
Edge edge.Kind
Parts []string
Resources []Resource
Functions map[string][]FunctionSpec
Usages []AppUsage
Transforms []string
Uses []buildoutput.Uses
}
type StackDestroy ¶
type StackDestroy struct {
Ref StackRef
Images ImageStore
Lease Lease
KeepParts bool
}
type StackResources ¶
type StackResult ¶
type Stacks ¶
type Stacks interface {
Plan(ctx context.Context, spec StackSpec, progress progress.Log) (Plan, error)
Provision(ctx context.Context, spec StackSpec, progress progress.Log) (StackResult, error)
PlanDestroy(ctx context.Context, ref StackRef, progress progress.Log) (Plan, error)
Destroy(ctx context.Context, req StackDestroy, progress progress.Log) error
Resources(ctx context.Context, req StackResources) ([]PhysicalResource, error)
}
type TierIdentity ¶
type WantedPartError ¶
func (WantedPartError) Error ¶
func (e WantedPartError) Error() string
func (WantedPartError) Unwrap ¶
func (e WantedPartError) Unwrap() error
type WebIdentity ¶
type WebIdentityFacts ¶
type WebIdentityFacts struct {
CredentialEnvVars []string
}
type WebIdentityTrust ¶
type WorkerCeiling ¶
func WorkerCeilingsOf ¶
func WorkerCeilingsOf(messages []*contractv1.WorkerCeiling) []WorkerCeiling
Source Files
¶
- artifacts.go
- attrs.go
- bootstrap.go
- certificates.go
- compute.go
- connector.go
- consent.go
- containerreleases.go
- cost.go
- credentials.go
- deploy.go
- dispatchenv.go
- dns.go
- edges.go
- errors.go
- hooks.go
- hostchecks.go
- imagepushes.go
- leases.go
- liveness.go
- logs.go
- namespace.go
- options.go
- physicalresource.go
- plan.go
- portforward.go
- provider.go
- question.go
- realtime.go
- registry.go
- release.go
- resources.go
- retirement.go
- retry.go
- routers.go
- runs.go
- runtime.go
- stacks.go
- topics.go
- webidentity.go
- worker.go
- workerceiling.go
- writtenby.go
Click to show internal directories.
Click to hide internal directories.