Documentation ¶
Index ¶
- Constants
- Variables
- type FirewallModelBuilder
- type NetworkModelBuilder
- type OpenstackModelContext
- func (c *OpenstackModelContext) APIResourceName() string
- func (c *OpenstackModelContext) GetNetworkName() (string, error)
- func (c *OpenstackModelContext) LinkToNetwork() *openstacktasks.Network
- func (c *OpenstackModelContext) LinkToPort(name *string) *openstacktasks.Port
- func (c *OpenstackModelContext) LinkToRouter(name *string) *openstacktasks.Router
- func (c *OpenstackModelContext) LinkToSecurityGroup(name string) *openstacktasks.SecurityGroup
- func (c *OpenstackModelContext) LinkToSubnet(name *string) *openstacktasks.Subnet
- func (c *OpenstackModelContext) UseVIPACL() bool
- type SSHKeyModelBuilder
- type ServerGroupModelBuilder
Constants ¶
View Source
const ( IPProtocolTCP = string(rules.ProtocolTCP) IPProtocolUDP = string(rules.ProtocolUDP) IPV4 = string(rules.EtherType4) IPV6 = string(rules.EtherType6) ProtocolIPEncap = "4" // IP in IPv4/IPv6 )
View Source
const MAX_TAG_LENGTH_OPENSTACK = 60
Constants for truncating Tags
Variables ¶
View Source
var TRUNCATE_OPT = truncate.TruncateStringOptions{ MaxLength: MAX_TAG_LENGTH_OPENSTACK, AlwaysAddHash: false, HashLength: 6, }
Functions ¶
This section is empty.
Types ¶
type FirewallModelBuilder ¶ added in v1.15.1
type FirewallModelBuilder struct { *OpenstackModelContext Lifecycle fi.Lifecycle Rules map[string]*openstacktasks.SecurityGroupRule }
FirewallModelBuilder configures firewall network objects
func (*FirewallModelBuilder) Build ¶ added in v1.15.1
func (b *FirewallModelBuilder) Build(c *fi.CloudupModelBuilderContext) error
Build - schedule security groups and security group rule tasks for Openstack
type NetworkModelBuilder ¶
type NetworkModelBuilder struct { *OpenstackModelContext Lifecycle fi.Lifecycle }
NetworkModelBuilder configures network objects
func (*NetworkModelBuilder) Build ¶
func (b *NetworkModelBuilder) Build(c *fi.CloudupModelBuilderContext) error
type OpenstackModelContext ¶
type OpenstackModelContext struct { *model.KopsModelContext // contains filtered or unexported fields }
func (*OpenstackModelContext) APIResourceName ¶ added in v1.26.0
func (c *OpenstackModelContext) APIResourceName() string
func (*OpenstackModelContext) GetNetworkName ¶ added in v1.16.0
func (c *OpenstackModelContext) GetNetworkName() (string, error)
func (*OpenstackModelContext) LinkToNetwork ¶
func (c *OpenstackModelContext) LinkToNetwork() *openstacktasks.Network
func (*OpenstackModelContext) LinkToPort ¶ added in v1.15.1
func (c *OpenstackModelContext) LinkToPort(name *string) *openstacktasks.Port
func (*OpenstackModelContext) LinkToRouter ¶
func (c *OpenstackModelContext) LinkToRouter(name *string) *openstacktasks.Router
func (*OpenstackModelContext) LinkToSecurityGroup ¶ added in v1.15.1
func (c *OpenstackModelContext) LinkToSecurityGroup(name string) *openstacktasks.SecurityGroup
func (*OpenstackModelContext) LinkToSubnet ¶
func (c *OpenstackModelContext) LinkToSubnet(name *string) *openstacktasks.Subnet
func (*OpenstackModelContext) UseVIPACL ¶ added in v1.18.0
func (c *OpenstackModelContext) UseVIPACL() bool
type SSHKeyModelBuilder ¶
type SSHKeyModelBuilder struct { *OpenstackModelContext Lifecycle fi.Lifecycle }
SSHKeyModelBuilder configures SSH objects
func (*SSHKeyModelBuilder) Build ¶
func (b *SSHKeyModelBuilder) Build(c *fi.CloudupModelBuilderContext) error
type ServerGroupModelBuilder ¶ added in v1.15.1
type ServerGroupModelBuilder struct { *OpenstackModelContext BootstrapScriptBuilder *model.BootstrapScriptBuilder Lifecycle fi.Lifecycle }
ServerGroupModelBuilder configures server group objects
func (*ServerGroupModelBuilder) Build ¶ added in v1.15.1
func (b *ServerGroupModelBuilder) Build(c *fi.CloudupModelBuilderContext) error
Click to show internal directories.
Click to hide internal directories.