downwardsapi

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("downwardsapi", fx.Provide(NewDownwardsAPI))

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// The root directory of the Kubernetes Downwards API mounts.
	Root string
}

type DownwardsAPI

type DownwardsAPI struct {
	// contains filtered or unexported fields
}

func NewDownwardsAPI

func NewDownwardsAPI(config Configuration) *DownwardsAPI

func (*DownwardsAPI) File

func (d *DownwardsAPI) File(key string) ([]Field, error)

type Field

type Field struct {
	Key   string
	Value string
}

func Parse

func Parse(s string) ([]Field, error)

func (Field) String

func (e Field) String() string

Jump to

Keyboard shortcuts

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