types

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configure

type Configure struct {
	Version       string `yaml:"version" json:"version"`
	AccessId      string `yaml:"access_key" json:"access_key"` //TODO 使用instance profile
	AccessSecret  string `yaml:"access_secret" json:"access_secret"`
	ServiceCIDR   string `yaml:"service_cidr" json:"service_cidr"` //TODO from cluster-info?
	VSwitches     map[string]string
	MaxPoolSize   int    `yaml:"max_pool_size" json:"max_pool_size"`
	MinPoolSize   int    `yaml:"min_pool_size" json:"min_pool_size"`
	Prefix        string `yaml:"prefix" json:"prefix"`
	SecurityGroup string `yaml:"security_group" json:"security_group"`
	HotPlug       string `yaml:"hot_plug" json:"hot_plug"`
}

type ENI

type ENI struct {
	ID      string
	Name    string
	Address net.IPNet
	MAC     string
	Gateway net.IP
}

type NetConf

type NetConf struct {
	types.NetConf
	IP string `ip:"ip"` //占位,暂不支持。考虑使用pod annotation
}

func NewConf

func NewConf(args *skel.CmdArgs) (*NetConf, error)

type PoolConfig

type PoolConfig struct {
	MaxPoolSize   int
	MinPoolSize   int
	VPC           string
	Zone          string
	VSwitch       string
	Region        string
	SecurityGroup string
	InstanceID    string
	AccessId      string
	AccessSecret  string
	HotPlug       bool
}

type TrafficShappingRule

type TrafficShappingRule struct {
	ID        string
	Source    string
	Bandwidth string
	Classify  int
}

Jump to

Keyboard shortcuts

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