visitor

package
v0.8.37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(v Interface) ([]runtime.Object, error)

func DecodeAll

func DecodeAll(vs []Interface) ([]runtime.Object, error)

func File

func File(path string) fileVisitor

func Stdin

func Stdin(stdin io.Reader) stdinVisitor

func URL

func URL(client HTTPClient, url string) urlVisitor

Types

type HTTPClient

type HTTPClient interface {
	Get(url string) (*http.Response, error)
}

type Interface

type Interface interface {
	Name() string
	Open() (io.ReadCloser, error)
}

A simplified version of cli-runtime/pkg/resource Visitor for objects that don't query the cluster.

func FromStrings

func FromStrings(filenames []string, stdin io.Reader) ([]Interface, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL