args

package
v0.0.0-...-814f547 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Common code to parse agruments for both Kubernetes and Mesos.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VRouterResultToCniResult

func VRouterResultToCniResult(agent *agent.Result) *types.Result

Convert cniArgs from VRouter format to CNI format

Types

type CniArgs

type CniArgs struct {
	ContrailArgs ContrailArgs `json:"contrail"`
	ContainerID  string
	IfName       string
	Netns        string
	K8SArgs      K8SArgs
}

Definition of json data in STDIN

func Get

func Get(args *skel.CmdArgs) (*CniArgs, error)

Fetch all parameters. Includes parameters from STDIN and Environemnt vars

type ContrailArgs

type ContrailArgs struct {
	VRouterArgs VRouterArgs `json:"vrouter"`
	Mode        string      `json:"mode"`
	Mtu         int         `json:"mtu"`
	Dir         string      `json:"dir"`
	Logging     LoggingArgs `json:"log"`
}

Contrail specific arguments

type K8SArgs

type K8SArgs struct {
	NameSpace string
	PodName   string
}

Kubernetes specific arguments

type LoggingArgs

type LoggingArgs struct {
	Dir   string `json:"dir"`
	Level string `json:"level"`
}

Logging arguments

type VRouterArgs

type VRouterArgs struct {
	Ip          string `json:"ip"`
	Port        int    `json:"port"`
	PollTimeout string `json:"pollTimeout"`
	PollRetries int    `json:"pollRetries"`
}

Definitions to get VRouter related parameters from json data

Jump to

Keyboard shortcuts

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