output

package
v0.0.0-...-126dee8 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output interface {
	Write([]discovery.Instance) error
}

type OutputFile

type OutputFile struct {
	FilePath string
}

func (OutputFile) Write

func (o OutputFile) Write(instances []discovery.Instance) error

type OutputKubernetes

type OutputKubernetes struct {
	Namespace     string
	ResourceName  string
	ResourceField string
	// contains filtered or unexported fields
}

func NewOutputKubernetes

func NewOutputKubernetes(kubeconfig string, resourceType OutputKubernetesResourceType, namespace string, resourceName string, resourceField string) (*OutputKubernetes, error)

func (OutputKubernetes) Write

func (o OutputKubernetes) Write(instances []discovery.Instance) error

type OutputKubernetesResourceType

type OutputKubernetesResourceType string
const (
	KUBERNETES_CONFIGMAP OutputKubernetesResourceType = "configmap"
	KUBERNETES_SECRET    OutputKubernetesResourceType = "secret"
)

type OutputStdOut

type OutputStdOut struct {
}

func (OutputStdOut) Write

func (o OutputStdOut) Write(instances []discovery.Instance) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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