Documentation
¶
Index ¶
Constants ¶
View Source
const ( ResourceTypeVeth = "veth" ResourceTypeENI = "eni" ResourceTypeENIIP = "eniIp" )
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"`
AccessSecret string `yaml:"access_secret" json:"access_secret"`
ServiceCIDR string `yaml:"service_cidr" json:"service_cidr"`
VSwitches map[string][]string `yaml:"vswitches" json:"vswitches"`
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"`
EniCapRatio float64 `yaml:"eni_cap_ratio" json:"eni_cap_ratio"`
EniCapShift int `yaml:"eni_cap_ratio" json:"eni_cap_ratio"`
}
type ENI ¶
type ENI struct {
ID string
Name string
Address net.IPNet
MAC string
Gateway net.IP
DeviceNumber int32
MaxIPs int
}
func (*ENI) GetResourceId ¶ added in v1.0.10
type ENIIP ¶ added in v1.0.10
func (*ENIIP) GetResourceId ¶ added in v1.0.10
type NetworkResource ¶ added in v1.0.10
type PoolConfig ¶
type ResourceCreateArgs ¶ added in v1.0.10
type ResourceCreateArgs struct {
VethCreateArgs *VethCreateArgs
}
type ResourceDestroyArgs ¶ added in v1.0.10
type ResourceDestroyArgs struct {
}
type TrafficShappingRule ¶
type Veth ¶ added in v1.0.10
type Veth struct {
HostVeth string
}
func (*Veth) GetResourceId ¶ added in v1.0.10
type VethCreateArgs ¶ added in v1.0.10
Click to show internal directories.
Click to hide internal directories.