Documentation
¶
Index ¶
- func FromFiles(ctx context.Context, paths []string, ignoreFilePatterns []string) (<-chan Resource, <-chan error)
- func FromStream(ctx context.Context, path string, r io.Reader) (<-chan Resource, <-chan error)
- func SplitYAMLDocument(data []byte, atEOF bool) (advance int, token []byte, err error)
- type DiscoveryError
- type Resource
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromStream ¶
FromStream reads resources from a byte stream, usually here stdin
func SplitYAMLDocument ¶
SplitYAMLDocument is a bufio.SplitFunc for splitting a YAML document into individual documents.
This is from Kubernetes' 'pkg/util/yaml'.splitYAMLDocument, which is unfortunately not exported.
Types ¶
type DiscoveryError ¶
func (DiscoveryError) Error ¶
func (de DiscoveryError) Error() string
type Resource ¶
Resource represents a Kubernetes resource within a file
func (*Resource) Resources ¶
Resources returns a list of resources if the resource is of type List, a single resource otherwise See https://github.com/icyxp/kubeconform/issues/53
Click to show internal directories.
Click to hide internal directories.