Documentation
¶
Index ¶
- func Decode(data []byte, maxSupportedVersion uint32) (*providerv0.ProviderState, error)
- func Encode(providerState *providerv0.ProviderState) ([]byte, error)
- func Validate(providerState *providerv0.ProviderStateV1, maxSupportedVersion uint32) error
- func ValidateUpgradeRecord(record *providerv0.UpgradeRecord) error
- func ValidateVersioned(providerState *providerv0.ProviderState, maxSupportedVersion uint32) error
- func WrapV1(providerState *providerv0.ProviderStateV1) *providerv0.ProviderState
- type OwnershipIndex
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)
Click to show internal directories.
Click to hide internal directories.