Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoDynamicCliSetError = errors.New("no dynamicCli set, use reporter.WithDynamicClient during initialization")
View Source
var NoGroupVersionResourceSetError = errors.New("no GroupVersionResource set, use reporter.WithGVRSchema during initialization")
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithDynamicClient ¶
func WithGVRSchema ¶
func WithGVRSchema(schema schema.GroupVersionResource) Option
type YamlReporter ¶
type YamlReporter struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...Option) (YamlReporter, error)
New creates and validates YamlReporter struct
func (YamlReporter) Get ¶
func (r YamlReporter) Get(ctx context.Context, name, namespace string, options metav1.GetOptions) (string, error)
func (YamlReporter) List ¶
func (r YamlReporter) List(ctx context.Context, namespace string, options metav1.ListOptions) ([]string, error)
Click to show internal directories.
Click to hide internal directories.