Documentation ¶
Index ¶
- func Resolve(ctx context.Context, r Resolver, ern Name) (map[string]any, error)
- func Valid(ern string) bool
- type InvalidErr
- type MalformedErr
- type Name
- func (e Name) Includes(parent Name) bool
- func (e Name) MarshalBinary() ([]byte, error)
- func (e Name) MarshalJSON() ([]byte, error)
- func (e Name) Match(m Name) bool
- func (e Name) Parent() Name
- func (e *Name) Scan(src interface{}) error
- func (e Name) String() string
- func (e *Name) UnmarshalBinary(data []byte) error
- func (e *Name) UnmarshalJSON(data []byte) error
- func (e Name) Valid() bool
- func (e Name) Value() (driver.Value, error)
- type Resolver
- type ResolverFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InvalidErr ¶
type InvalidErr struct{}
InvalidErr is triggered when ERN has correct format but points to an unknown resource
func (InvalidErr) Error ¶
func (InvalidErr) Error() string
type MalformedErr ¶
type MalformedErr struct{}
MalformedErr is triggered when string does not follow ERN format
func (MalformedErr) Error ¶
func (MalformedErr) Error() string
type Name ¶
type Name []string
func (Name) MarshalBinary ¶
func (Name) MarshalJSON ¶
func (*Name) UnmarshalBinary ¶
func (*Name) UnmarshalJSON ¶
type Resolver ¶
func NewResolver ¶
Click to show internal directories.
Click to hide internal directories.