Documentation ¶
Index ¶
- Variables
- func CollectNodes(ii ...interface{}) (nn []resource.Interface, err error)
- func Encode(ctx context.Context, p Provider, e Encoder) error
- func FilterRequestedRBACRules(request resource.InterfaceSet, rules []*resource.RbacRule) (out []*resource.RbacRule)
- func FilterRequiredResourceTranslations(request resource.InterfaceSet, translations []*resource.ResourceTranslation) (out []*resource.ResourceTranslation)
- func NewBuilder(pp ...Preparer) *builder
- func NewSafeBuilder(pp ...Preparer) *builder
- func NormalizeResourceTranslations(rr ...resource.Interface) []resource.Interface
- type DecoderOpts
- type Encoder
- type Marshaller
- type PrepareEncodeStreamer
- type PrepareEncoder
- type Preparer
- type Provider
- type ResourceState
- type Stream
- type Streamer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BuilderErrUnresolvedReferences = fmt.Errorf("builder error: unresolved references")
)
Functions ¶
func CollectNodes ¶
MarshalMerge takes one or more nodes and Marshals and merges all
func FilterRequestedRBACRules ¶
func FilterRequestedRBACRules(request resource.InterfaceSet, rules []*resource.RbacRule) (out []*resource.RbacRule)
FilterRequestedRBACRules returns only RBAC rules relevant for the given resources
func FilterRequiredResourceTranslations ¶
func FilterRequiredResourceTranslations(request resource.InterfaceSet, translations []*resource.ResourceTranslation) (out []*resource.ResourceTranslation)
FilterRequiredResourceTranslations returns only resource translations relevant for the given resources
func NewBuilder ¶
func NewBuilder(pp ...Preparer) *builder
func NewSafeBuilder ¶
func NewSafeBuilder(pp ...Preparer) *builder
Types ¶
type DecoderOpts ¶
DecoderOpts provides additional context for source decoders
type Encoder ¶
Encoder encodes all resources provided by the Rc until nil is passed
Encoding errors are passed via Ec.
type Marshaller ¶
type PrepareEncodeStreamer ¶
type PrepareEncoder ¶
type Preparer ¶
type Preparer interface {
Prepare(ctx context.Context, ee ...*ResourceState) error
}
type Provider ¶
type Provider interface {
NextInverted(ctx context.Context) (*ResourceState, error)
}
type ResourceState ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.