openstacktasks

package
v0.0.0-...-6060be6 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int

func Int(v int) *int

func IntValue

func IntValue(v *int) int

Types

type FloatingIP

type FloatingIP struct {
	Name      *string
	ID        *string
	Server    *Instance
	LB        *LB
	Lifecycle *fi.Lifecycle
}

func (*FloatingIP) CheckChanges

func (_ *FloatingIP) CheckChanges(a, e, changes *FloatingIP) error

func (*FloatingIP) CompareWithID

func (e *FloatingIP) CompareWithID() *string

func (*FloatingIP) Find

func (e *FloatingIP) Find(c *fi.Context) (*FloatingIP, error)

func (*FloatingIP) FindIPAddress

func (e *FloatingIP) FindIPAddress(context *fi.Context) (*string, error)

func (*FloatingIP) GetDependencies

func (e *FloatingIP) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns the dependencies of the Instance task

func (*FloatingIP) GetLifecycle

func (o *FloatingIP) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*FloatingIP) GetName

func (o *FloatingIP) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*FloatingIP) RenderOpenstack

func (f *FloatingIP) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *FloatingIP) error

func (*FloatingIP) Run

func (e *FloatingIP) Run(c *fi.Context) error

func (*FloatingIP) SetLifecycle

func (o *FloatingIP) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*FloatingIP) SetName

func (o *FloatingIP) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*FloatingIP) ShouldCreate

func (_ *FloatingIP) ShouldCreate(a, e, changes *FloatingIP) (bool, error)

func (*FloatingIP) String

func (o *FloatingIP) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*FloatingIP) UnmarshalJSON

func (o *FloatingIP) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type Instance

type Instance struct {
	ID               *string
	Name             *string
	Port             *Port
	Region           *string
	Flavor           *string
	Image            *string
	SSHKey           *string
	ServerGroup      *ServerGroup
	Tags             []string
	Role             *string
	UserData         *string
	Metadata         map[string]string
	AvailabilityZone *string
	SecurityGroups   []string

	Lifecycle *fi.Lifecycle
}

func (*Instance) CheckChanges

func (_ *Instance) CheckChanges(a, e, changes *Instance) error

func (*Instance) CompareWithID

func (e *Instance) CompareWithID() *string

func (*Instance) Find

func (e *Instance) Find(c *fi.Context) (*Instance, error)

func (*Instance) FindIPAddress

func (e *Instance) FindIPAddress(context *fi.Context) (*string, error)

func (*Instance) GetDependencies

func (e *Instance) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns the dependencies of the Instance task

func (*Instance) GetLifecycle

func (o *Instance) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Instance) GetName

func (o *Instance) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Instance) RenderOpenstack

func (_ *Instance) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *Instance) error

func (*Instance) Run

func (e *Instance) Run(c *fi.Context) error

func (*Instance) SetLifecycle

func (o *Instance) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Instance) SetName

func (o *Instance) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Instance) ShouldCreate

func (_ *Instance) ShouldCreate(a, e, changes *Instance) (bool, error)

func (*Instance) String

func (o *Instance) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*Instance) UnmarshalJSON

func (o *Instance) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

func (*Instance) WaitForStatusActive

func (e *Instance) WaitForStatusActive(t *openstack.OpenstackAPITarget) error

type LB

type LB struct {
	ID            *string
	Name          *string
	Subnet        *string
	VipSubnet     *string
	Lifecycle     *fi.Lifecycle
	PortID        *string
	SecurityGroup *SecurityGroup
}

func NewLBTaskFromCloud

func NewLBTaskFromCloud(cloud openstack.OpenstackCloud, lifecycle *fi.Lifecycle, lb *loadbalancers.LoadBalancer, find *LB) (*LB, error)

func (*LB) CheckChanges

func (_ *LB) CheckChanges(a, e, changes *LB) error

func (*LB) CompareWithID

func (s *LB) CompareWithID() *string

func (*LB) Find

func (s *LB) Find(context *fi.Context) (*LB, error)

func (*LB) GetDependencies

func (e *LB) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns the dependencies of the Instance task

func (*LB) GetLifecycle

func (o *LB) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*LB) GetName

func (o *LB) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*LB) RenderOpenstack

func (_ *LB) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *LB) error

func (*LB) Run

func (s *LB) Run(context *fi.Context) error

func (*LB) SetLifecycle

func (o *LB) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*LB) SetName

func (o *LB) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*LB) String

func (o *LB) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*LB) UnmarshalJSON

func (o *LB) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type LBListener

type LBListener struct {
	ID        *string
	Name      *string
	Pool      *LBPool
	Lifecycle *fi.Lifecycle
}

func NewLBListenerTaskFromCloud

func NewLBListenerTaskFromCloud(cloud openstack.OpenstackCloud, lifecycle *fi.Lifecycle, lb *listeners.Listener, find *LBListener) (*LBListener, error)

func (*LBListener) CheckChanges

func (_ *LBListener) CheckChanges(a, e, changes *LBListener) error

func (*LBListener) CompareWithID

func (s *LBListener) CompareWithID() *string

func (*LBListener) Find

func (s *LBListener) Find(context *fi.Context) (*LBListener, error)

func (*LBListener) GetDependencies

func (e *LBListener) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns the dependencies of the Instance task

func (*LBListener) GetLifecycle

func (o *LBListener) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*LBListener) GetName

func (o *LBListener) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*LBListener) RenderOpenstack

func (_ *LBListener) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *LBListener) error

func (*LBListener) Run

func (s *LBListener) Run(context *fi.Context) error

func (*LBListener) SetLifecycle

func (o *LBListener) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*LBListener) SetName

func (o *LBListener) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*LBListener) String

func (o *LBListener) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*LBListener) UnmarshalJSON

func (o *LBListener) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type LBPool

type LBPool struct {
	ID           *string
	Name         *string
	Lifecycle    *fi.Lifecycle
	Loadbalancer *LB
}

func NewLBPoolTaskFromCloud

func NewLBPoolTaskFromCloud(cloud openstack.OpenstackCloud, lifecycle *fi.Lifecycle, pool *v2pools.Pool, find *LBPool) (*LBPool, error)

func (*LBPool) CheckChanges

func (_ *LBPool) CheckChanges(a, e, changes *LBPool) error

func (*LBPool) CompareWithID

func (s *LBPool) CompareWithID() *string

func (*LBPool) Find

func (p *LBPool) Find(context *fi.Context) (*LBPool, error)

func (*LBPool) GetDependencies

func (e *LBPool) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns the dependencies of the Instance task

func (*LBPool) GetLifecycle

func (o *LBPool) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*LBPool) GetName

func (o *LBPool) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*LBPool) RenderOpenstack

func (_ *LBPool) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *LBPool) error

func (*LBPool) Run

func (s *LBPool) Run(context *fi.Context) error

func (*LBPool) SetLifecycle

func (o *LBPool) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*LBPool) SetName

func (o *LBPool) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*LBPool) String

func (o *LBPool) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*LBPool) UnmarshalJSON

func (o *LBPool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type Network

type Network struct {
	ID        *string
	Name      *string
	Lifecycle *fi.Lifecycle
}

func NewNetworkTaskFromCloud

func NewNetworkTaskFromCloud(cloud openstack.OpenstackCloud, lifecycle *fi.Lifecycle, network *networks.Network) (*Network, error)

func (*Network) CheckChanges

func (_ *Network) CheckChanges(a, e, changes *Network) error

func (*Network) CompareWithID

func (n *Network) CompareWithID() *string

func (*Network) Find

func (n *Network) Find(context *fi.Context) (*Network, error)

func (*Network) GetLifecycle

func (o *Network) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Network) GetName

func (o *Network) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Network) RenderOpenstack

func (_ *Network) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *Network) error

func (*Network) Run

func (c *Network) Run(context *fi.Context) error

func (*Network) SetLifecycle

func (o *Network) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Network) SetName

func (o *Network) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Network) ShouldCreate

func (_ *Network) ShouldCreate(a, e, changes *Network) (bool, error)

func (*Network) String

func (o *Network) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*Network) UnmarshalJSON

func (o *Network) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type PoolAssociation

type PoolAssociation struct {
	ID            *string
	Name          *string
	Lifecycle     *fi.Lifecycle
	Pool          *LBPool
	ServerGroup   *ServerGroup
	InterfaceName *string
	ProtocolPort  *int
}

func (*PoolAssociation) CheckChanges

func (_ *PoolAssociation) CheckChanges(a, e, changes *PoolAssociation) error

func (*PoolAssociation) CompareWithID

func (s *PoolAssociation) CompareWithID() *string

func (*PoolAssociation) Find

func (p *PoolAssociation) Find(context *fi.Context) (*PoolAssociation, error)

func (*PoolAssociation) GetDependencies

func (e *PoolAssociation) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns the dependencies of the Instance task

func (*PoolAssociation) GetLifecycle

func (o *PoolAssociation) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*PoolAssociation) GetName

func (o *PoolAssociation) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*PoolAssociation) RenderOpenstack

func (_ *PoolAssociation) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *PoolAssociation) error

func (*PoolAssociation) Run

func (s *PoolAssociation) Run(context *fi.Context) error

func (*PoolAssociation) SetLifecycle

func (o *PoolAssociation) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*PoolAssociation) SetName

func (o *PoolAssociation) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*PoolAssociation) String

func (o *PoolAssociation) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*PoolAssociation) UnmarshalJSON

func (o *PoolAssociation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type Port

type Port struct {
	ID                       *string
	Name                     *string
	Network                  *Network
	Subnets                  []*Subnet
	SecurityGroups           []*SecurityGroup
	AdditionalSecurityGroups []string
	Lifecycle                *fi.Lifecycle
}

func NewPortTaskFromCloud

func NewPortTaskFromCloud(cloud openstack.OpenstackCloud, lifecycle *fi.Lifecycle, port *ports.Port, find *Port) (*Port, error)

func (*Port) CheckChanges

func (_ *Port) CheckChanges(a, e, changes *Port) error

func (*Port) CompareWithID

func (s *Port) CompareWithID() *string

func (*Port) Find

func (s *Port) Find(context *fi.Context) (*Port, error)

func (*Port) GetDependencies

func (e *Port) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns the dependencies of the Port task

func (*Port) GetLifecycle

func (o *Port) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Port) GetName

func (o *Port) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Port) RenderOpenstack

func (*Port) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *Port) error

func (*Port) Run

func (s *Port) Run(context *fi.Context) error

func (*Port) SetLifecycle

func (o *Port) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Port) SetName

func (o *Port) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Port) String

func (o *Port) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*Port) UnmarshalJSON

func (o *Port) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type PortRemovalRule

type PortRemovalRule struct {
	Port int
}

func (*PortRemovalRule) Matches

func (r *PortRemovalRule) Matches(rule sgr.SecGroupRule) bool

func (*PortRemovalRule) String

func (r *PortRemovalRule) String() string

type RemovalRule

type RemovalRule interface {
	Matches(sgr.SecGroupRule) bool
}

RemovalRule is a rule that filters the permissions we should remove

func ParseRemovalRule

func ParseRemovalRule(rule string) (RemovalRule, error)

ParseRemovalRule parses our removal rule DSL into a RemovalRule

type Router

type Router struct {
	ID        *string
	Name      *string
	Lifecycle *fi.Lifecycle
}

func NewRouterTaskFromCloud

func NewRouterTaskFromCloud(cloud openstack.OpenstackCloud, lifecycle *fi.Lifecycle, router *routers.Router, find *Router) (*Router, error)

func (*Router) CheckChanges

func (_ *Router) CheckChanges(a, e, changes *Router) error

func (*Router) CompareWithID

func (n *Router) CompareWithID() *string

func (*Router) Find

func (n *Router) Find(context *fi.Context) (*Router, error)

func (*Router) GetLifecycle

func (o *Router) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Router) GetName

func (o *Router) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Router) RenderOpenstack

func (_ *Router) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *Router) error

func (*Router) Run

func (c *Router) Run(context *fi.Context) error

func (*Router) SetLifecycle

func (o *Router) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Router) SetName

func (o *Router) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Router) String

func (o *Router) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*Router) UnmarshalJSON

func (o *Router) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type RouterInterface

type RouterInterface struct {
	ID        *string
	Name      *string
	Router    *Router
	Subnet    *Subnet
	Lifecycle *fi.Lifecycle
}

func (*RouterInterface) CheckChanges

func (_ *RouterInterface) CheckChanges(a, e, changes *RouterInterface) error

func (*RouterInterface) CompareWithID

func (i *RouterInterface) CompareWithID() *string

func (*RouterInterface) Find

func (i *RouterInterface) Find(context *fi.Context) (*RouterInterface, error)

func (*RouterInterface) GetDependencies

func (e *RouterInterface) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns the dependencies of the RouterInterface task

func (*RouterInterface) GetLifecycle

func (o *RouterInterface) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*RouterInterface) GetName

func (o *RouterInterface) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*RouterInterface) RenderOpenstack

func (_ *RouterInterface) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *RouterInterface) error

func (*RouterInterface) Run

func (i *RouterInterface) Run(context *fi.Context) error

func (*RouterInterface) SetLifecycle

func (o *RouterInterface) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*RouterInterface) SetName

func (o *RouterInterface) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*RouterInterface) String

func (o *RouterInterface) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*RouterInterface) UnmarshalJSON

func (o *RouterInterface) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type SSHKey

type SSHKey struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	PublicKey *fi.ResourceHolder

	KeyFingerprint *string
}

func (*SSHKey) CheckChanges

func (s *SSHKey) CheckChanges(a, e, changes *SSHKey) error

func (*SSHKey) CompareWithID

func (e *SSHKey) CompareWithID() *string

func (*SSHKey) Find

func (e *SSHKey) Find(c *fi.Context) (*SSHKey, error)

func (*SSHKey) GetLifecycle

func (o *SSHKey) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*SSHKey) GetName

func (o *SSHKey) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*SSHKey) RenderOpenstack

func (_ *SSHKey) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *SSHKey) error

func (*SSHKey) Run

func (e *SSHKey) Run(c *fi.Context) error

func (*SSHKey) SetLifecycle

func (o *SSHKey) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*SSHKey) SetName

func (o *SSHKey) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*SSHKey) String

func (o *SSHKey) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*SSHKey) UnmarshalJSON

func (o *SSHKey) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type SecurityGroup

type SecurityGroup struct {
	ID               *string
	Name             *string
	Description      *string
	RemoveExtraRules []string
	Lifecycle        *fi.Lifecycle
}

func (*SecurityGroup) CheckChanges

func (_ *SecurityGroup) CheckChanges(a, e, changes *SecurityGroup) error

func (*SecurityGroup) CompareWithID

func (s *SecurityGroup) CompareWithID() *string

func (*SecurityGroup) Find

func (s *SecurityGroup) Find(context *fi.Context) (*SecurityGroup, error)

func (*SecurityGroup) FindDeletions

func (s *SecurityGroup) FindDeletions(c *fi.Context) ([]fi.Deletion, error)

func (*SecurityGroup) GetLifecycle

func (o *SecurityGroup) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*SecurityGroup) GetName

func (o *SecurityGroup) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*SecurityGroup) RenderOpenstack

func (_ *SecurityGroup) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *SecurityGroup) error

func (*SecurityGroup) Run

func (s *SecurityGroup) Run(context *fi.Context) error

func (*SecurityGroup) SetLifecycle

func (o *SecurityGroup) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*SecurityGroup) SetName

func (o *SecurityGroup) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*SecurityGroup) String

func (o *SecurityGroup) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*SecurityGroup) UnmarshalJSON

func (o *SecurityGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type SecurityGroupRule

type SecurityGroupRule struct {
	ID             *string
	Direction      *string
	EtherType      *string
	SecGroup       *SecurityGroup
	PortRangeMin   *int
	PortRangeMax   *int
	Protocol       *string
	RemoteIPPrefix *string
	RemoteGroup    *SecurityGroup
	Lifecycle      *fi.Lifecycle
}

func (*SecurityGroupRule) CheckChanges

func (_ *SecurityGroupRule) CheckChanges(a, e, changes *SecurityGroupRule) error

func (*SecurityGroupRule) CompareWithID

func (r *SecurityGroupRule) CompareWithID() *string

func (*SecurityGroupRule) Find

func (r *SecurityGroupRule) Find(context *fi.Context) (*SecurityGroupRule, error)

func (*SecurityGroupRule) GetDependencies

func (e *SecurityGroupRule) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns the dependencies of the Instance task

func (*SecurityGroupRule) GetLifecycle

func (o *SecurityGroupRule) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*SecurityGroupRule) GetName

func (o *SecurityGroupRule) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*SecurityGroupRule) RenderOpenstack

func (_ *SecurityGroupRule) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *SecurityGroupRule) error

func (*SecurityGroupRule) Run

func (r *SecurityGroupRule) Run(context *fi.Context) error

func (*SecurityGroupRule) SetLifecycle

func (o *SecurityGroupRule) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*SecurityGroupRule) SetName

func (o *SecurityGroupRule) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*SecurityGroupRule) String

func (o *SecurityGroupRule) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*SecurityGroupRule) UnmarshalJSON

func (o *SecurityGroupRule) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type ServerGroup

type ServerGroup struct {
	ID          *string
	Name        *string
	ClusterName *string
	IGName      *string
	Members     []string
	Policies    []string
	MaxSize     *int32
	Lifecycle   *fi.Lifecycle
}

func (*ServerGroup) CheckChanges

func (_ *ServerGroup) CheckChanges(a, e, changes *ServerGroup) error

func (*ServerGroup) CompareWithID

func (s *ServerGroup) CompareWithID() *string

func (*ServerGroup) Find

func (s *ServerGroup) Find(context *fi.Context) (*ServerGroup, error)

func (*ServerGroup) GetLifecycle

func (o *ServerGroup) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*ServerGroup) GetName

func (o *ServerGroup) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*ServerGroup) RenderOpenstack

func (_ *ServerGroup) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *ServerGroup) error

func (*ServerGroup) Run

func (s *ServerGroup) Run(context *fi.Context) error

func (*ServerGroup) SetLifecycle

func (o *ServerGroup) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*ServerGroup) SetName

func (o *ServerGroup) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*ServerGroup) String

func (o *ServerGroup) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*ServerGroup) UnmarshalJSON

func (o *ServerGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type Subnet

type Subnet struct {
	ID         *string
	Name       *string
	Network    *Network
	CIDR       *string
	DNSServers []*string
	Lifecycle  *fi.Lifecycle
}

func NewSubnetTaskFromCloud

func NewSubnetTaskFromCloud(cloud openstack.OpenstackCloud, lifecycle *fi.Lifecycle, subnet *subnets.Subnet, find *Subnet) (*Subnet, error)

func (*Subnet) CheckChanges

func (_ *Subnet) CheckChanges(a, e, changes *Subnet) error

func (*Subnet) CompareWithID

func (s *Subnet) CompareWithID() *string

func (*Subnet) Find

func (s *Subnet) Find(context *fi.Context) (*Subnet, error)

func (*Subnet) GetDependencies

func (e *Subnet) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns the dependencies of the Port task

func (*Subnet) GetLifecycle

func (o *Subnet) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Subnet) GetName

func (o *Subnet) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Subnet) RenderOpenstack

func (_ *Subnet) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *Subnet) error

func (*Subnet) Run

func (s *Subnet) Run(context *fi.Context) error

func (*Subnet) SetLifecycle

func (o *Subnet) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Subnet) SetName

func (o *Subnet) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Subnet) String

func (o *Subnet) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*Subnet) UnmarshalJSON

func (o *Subnet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type Volume

type Volume struct {
	ID               *string
	Name             *string
	AvailabilityZone *string
	VolumeType       *string
	SizeGB           *int64
	Tags             map[string]string
	Lifecycle        *fi.Lifecycle
}

func (*Volume) CheckChanges

func (_ *Volume) CheckChanges(a, e, changes *Volume) error

func (*Volume) CompareWithID

func (c *Volume) CompareWithID() *string

func (*Volume) Find

func (c *Volume) Find(context *fi.Context) (*Volume, error)

func (*Volume) GetLifecycle

func (o *Volume) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Volume) GetName

func (o *Volume) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Volume) RenderOpenstack

func (_ *Volume) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *Volume) error

func (*Volume) Run

func (c *Volume) Run(context *fi.Context) error

func (*Volume) SetLifecycle

func (o *Volume) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Volume) SetName

func (o *Volume) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Volume) String

func (o *Volume) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*Volume) UnmarshalJSON

func (o *Volume) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

Jump to

Keyboard shortcuts

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