config

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiVersion string   `yaml:"apiVersion"`
	Data       Data     `yaml:"data"`
	Kind       string   `yaml:"kind"`
	Metadata   Metadata `yaml:"metadata"`
	Spec       autoGenO `yaml:"spec"`
	Type       string   `yaml:"type"`
}

func ReadConfig

func ReadConfig(path string) (Config, error)

type Data

type Data struct {
	MyKey    string `yaml:"my-key"`
	Password string `yaml:"password"`
}

type Metadata

type Metadata struct {
	Name      string `yaml:"name"`
	Namespace string `yaml:"namespace"`
}

type Port

type Port struct {
	Port       int    `yaml:"port"`
	Protocol   string `yaml:"protocol"`
	TargetPort int    `yaml:"targetPort"`
}

type ServicePort

type ServicePort struct {
	Number int `yaml:"number"`
}

Jump to

Keyboard shortcuts

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