kubernetes

package
v0.0.0-...-7995a24 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KubeDeploymentTemplate string = `` /* 1697-byte string literal not displayed */
View Source
var KubeServiceTemplate string = `` /* 624-byte string literal not displayed */

Functions

This section is empty.

Types

type KubeDeploymentInfo

type KubeDeploymentInfo struct {
	Opts          *option.Options
	Namespace     string
	Project       string
	Version       string
	ImagePath     string
	ContainerPort string
}

KubeDeploymentInfo represents kubernetes deployment information

func NewKubeDeploymentInfo

func NewKubeDeploymentInfo(opts ...option.Option) *KubeDeploymentInfo

NewKubeDeploymentInfo returns a new KubeDeploymentInfo pointer

func (*KubeDeploymentInfo) RenderFile

func (info *KubeDeploymentInfo) RenderFile(outputPath string) error

RenderFile render template and output to file

type KubeServiceInfo

type KubeServiceInfo struct {
	Opts       *option.Options
	Namespace  string
	Project    string
	Type       string // grpc or http
	Port       string
	TargetPort string
}

KubeServiceInfo represents kubernetes service information

func NewKubeServiceInfo

func NewKubeServiceInfo(opts ...option.Option) *KubeServiceInfo

NewKubeServiceInfo returns a new KubeServiceInfo pointer

func (*KubeServiceInfo) RenderFile

func (info *KubeServiceInfo) RenderFile(outputPath string) error

RenderFile render template and output to file

Jump to

Keyboard shortcuts

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