Help us shape the future of Go! Take the 2026 Go Developer Survey

state

package
v0.2.61 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte, maxSupportedVersion uint32) (*providerv0.ProviderState, error)

func Encode

func Encode(providerState *providerv0.ProviderState) ([]byte, error)

func Validate

func Validate(providerState *providerv0.ProviderStateV1, maxSupportedVersion uint32) error

func ValidateUpgradeRecord

func ValidateUpgradeRecord(record *providerv0.UpgradeRecord) error

func ValidateVersioned

func ValidateVersioned(providerState *providerv0.ProviderState, maxSupportedVersion uint32) error

func WrapV1

func WrapV1(providerState *providerv0.ProviderStateV1) *providerv0.ProviderState

Types

type OwnershipIndex

type OwnershipIndex struct {
	// contains filtered or unexported fields
}

func NewOwnershipIndex

func NewOwnershipIndex(states ...*providerv0.ProviderStateV1) (*OwnershipIndex, error)

func (*OwnershipIndex) Add

func (i *OwnershipIndex) Add(providerState *providerv0.ProviderStateV1) error

func (*OwnershipIndex) Owner

func (i *OwnershipIndex) Owner(workspaceID string, identity *providerv0.RemoteIdentity) (*providerv0.BindingAddress, bool)

Jump to

Keyboard shortcuts

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