kubernetes

package
v0.2.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() (*k8s.Clientset, error)

Client returns a new Kubernetes client

func Init

func Init() error

Initialize to deploy the Dapr operator

func Uninstall

func Uninstall() error

Uninstall the Dapr

Types

type ListOutput

type ListOutput struct {
	AppID   string `csv:"APP ID"`
	AppPort string `csv:"APP PORT"`
	Age     string `csv:"AGE"`
	Created string `csv:"CREATED"`
}

ListOutput to represent the application id, application port and creation time

func List

func List() ([]ListOutput, error)

List to output all the the applications

type RunConfig

type RunConfig struct {
	AppID         string
	AppPort       int
	HTTPPort      int
	GRPCPort      int
	CodeDirectory string
	Arguments     []string
	Image         string
}

RunConfig to represent application configuration parameters

type RunOutput

type RunOutput struct {
	Message string
}

RunOutput to represent the run output

func Run

func Run(config *RunConfig) (*RunOutput, error)

Run based on run configuration

Jump to

Keyboard shortcuts

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