Documentation
¶
Overview ¶
Package providercontract describes explicit resource-provider operations. It does not describe Harness capabilities or external API optional fields.
Index ¶
Constants ¶
const Supported = "supported"
const Unsupported = "unsupported"
Variables ¶
var ErrContract = errors.New("invalid provider operation declaration")
var ErrUnsupported = errors.New("provider operation unsupported")
Functions ¶
func UnsupportedReason ¶
UnsupportedReason verifies the operation and safe code before callers fall back or publish the reason. A bare sentinel is a contract violation.
Types ¶
type Declared ¶
type Declared interface{ ProviderOperations() Operations }
type Operations ¶
Zero values are omissions, never an unsupported declaration.
type UnsupportedError ¶
UnsupportedError contains only an operation name and an authored safe code. It never carries a native error, credential, endpoint or resource identifier.
func (*UnsupportedError) Error ¶
func (e *UnsupportedError) Error() string
func (*UnsupportedError) Unwrap ¶
func (e *UnsupportedError) Unwrap() error