resources

package
v1.5.13 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Name      string            `yaml:"name"`
	Namespace string            `yaml:"namespace"`
	Labels    map[string]string `yaml:"labels,omitempty"`
}

type Port

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

type Secret

type Secret struct {
	APIVersion string            `yaml:"apiVersion"`
	Kind       string            `yaml:"kind"`
	Metadata   *Metadata         `yaml:"metadata"`
	Data       map[string]string `yaml:"data"`
	Type       string            `yaml:"type"`
}

func NewSecret

func NewSecret(conf *SecretConfig) *Secret

type SecretConfig

type SecretConfig struct {
	Name      string
	Namespace string
	Labels    map[string]string
	Data      map[string]string
}

type Service

type Service struct {
	APIVersion string    `yaml:"apiVersion"`
	Kind       string    `yaml:"kind"`
	Metadata   *Metadata `yaml:"metadata"`
	Spec       *Spec     `yaml:"spec"`
}

func NewService

func NewService(conf *ServiceConfig) *Service

type ServiceConfig

type ServiceConfig struct {
	Name       string
	Namespace  string
	Labels     map[string]string
	PortName   string
	Port       int
	TargetPort int
	Protocol   string
	Selector   map[string]string
}

type Spec

type Spec struct {
	Selector map[string]string `yaml:"selector"`
	Ports    []*Port           `yaml:"ports"`
}

Jump to

Keyboard shortcuts

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