Versions in this module Expand all Collapse all v0 v0.0.1 May 22, 2024 Changes in this version + type AnnotatedReadCloser interface + Annotate func() any + type Backend interface + Init func(context.Context, ...BackendOption) (io.ReadCloser, error) + func NewEchoBackend(echo string) Backend + type BackendOption func(Backend) + func FsDir(dir string) BackendOption + func FsFilters(skips ...FilterFn) BackendOption + func PodClient(client kubernetes.Interface) BackendOption + func PodName(name string) BackendOption + func PodNamespace(namespace string) BackendOption + type EchoBackend struct + func (p *EchoBackend) Init(_ context.Context, bo ...BackendOption) (io.ReadCloser, error) + type FilterFn func(path string, info os.FileInfo) (bool, error) + func SkipDirs() FilterFn + func SkipEmpty() FilterFn + func SkipNotYAML() FilterFn + func SkipPath(pattern string) FilterFn + type FsBackend struct + func NewFsBackend(fs afero.Fs, bo ...BackendOption) *FsBackend + func (p *FsBackend) Init(_ context.Context, bo ...BackendOption) (io.ReadCloser, error) + type FsReadCloser struct + func NewFsReadCloser(fs afero.Fs, dir string, fns ...FilterFn) (*FsReadCloser, error) + func (r *FsReadCloser) Annotate() any + func (r *FsReadCloser) Close() error + func (r *FsReadCloser) Read(p []byte) (n int, err error) + type FsReadCloserAnnotation struct + type Linter interface + Lint func(*Package) error + type NopBackend struct + func NewNopBackend(...BackendOption) *NopBackend + func (p *NopBackend) Init(_ context.Context, _ ...BackendOption) (io.ReadCloser, error) + type ObjectCreaterTyper interface + type ObjectLinterFn func(runtime.Object) error + func ObjectLinterFns(fns ...ObjectLinterFn) []ObjectLinterFn + func Or(linters ...ObjectLinterFn) ObjectLinterFn + type Package struct + func NewPackage() *Package + func (p *Package) GetMeta() []runtime.Object + func (p *Package) GetObjects() []runtime.Object + type PackageLinter struct + func NewPackageLinter(pre []PackageLinterFn, perMeta, perObject []ObjectLinterFn) *PackageLinter + func (l *PackageLinter) Lint(pkg *Package) error + type PackageLinterFn func(*Package) error + func PackageLinterFns(fns ...PackageLinterFn) []PackageLinterFn + type PackageParser struct + func New(meta, obj ObjectCreaterTyper) *PackageParser + func (p *PackageParser) Parse(_ context.Context, reader io.ReadCloser) (*Package, error) + type Parser interface + Parse func(context.Context, io.ReadCloser) (*Package, error) + type PodLogBackend struct + func NewPodLogBackend(bo ...BackendOption) *PodLogBackend + func (p *PodLogBackend) Init(ctx context.Context, bo ...BackendOption) (io.ReadCloser, error)