openstacktasks

package
v1.30.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 33 Imported by: 75

Documentation

Index

Constants

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

func GetServerFixedIP added in v1.19.0

func GetServerFixedIP(client *gophercloud.ServiceClient, server *servers.Server, interfaceName string) (memberAddress string, err error)

func Int

func Int(v int) *int

func IntValue

func IntValue(v *int) int

Types

type FloatingIP added in v1.15.1

type FloatingIP struct {
	Name      *string
	ID        *string
	LB        *LB
	IP        *string
	Lifecycle fi.Lifecycle

	// WellKnownServices indicates which services are supported by this resource.
	// This field is internal and is not rendered to the cloud.
	WellKnownServices []wellknownservices.WellKnownService
}

+kops:fitask

func (*FloatingIP) CheckChanges added in v1.15.1

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

func (*FloatingIP) CompareWithID added in v1.15.1

func (e *FloatingIP) CompareWithID() *string

func (*FloatingIP) Find added in v1.15.1

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

func (*FloatingIP) FindAddresses added in v1.24.0

func (e *FloatingIP) FindAddresses(context *fi.CloudupContext) ([]string, error)

func (*FloatingIP) GetDependencies added in v1.15.1

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

GetDependencies returns the dependencies of the Instance task

func (*FloatingIP) GetLifecycle added in v1.15.1

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

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

func (*FloatingIP) GetName added in v1.15.1

func (o *FloatingIP) GetName() *string

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

func (*FloatingIP) GetWellKnownServices added in v1.29.0

func (e *FloatingIP) GetWellKnownServices() []wellknownservices.WellKnownService

GetWellKnownServices implements fi.HasAddress::GetWellKnownServices. It indicates which services we support with this address.

func (*FloatingIP) RenderOpenstack added in v1.15.1

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

func (*FloatingIP) Run added in v1.15.1

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

func (*FloatingIP) SetLifecycle added in v1.15.1

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

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

func (*FloatingIP) ShouldCreate added in v1.15.1

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

func (*FloatingIP) String added in v1.15.1

func (o *FloatingIP) String() string

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

type Instance added in v1.15.1

type Instance struct {
	ID               *string
	Name             *string
	GroupName        *string
	Port             *Port
	Region           *string
	Flavor           *string
	Image            *string
	SSHKey           *string
	ServerGroup      *ServerGroup
	Role             *string
	UserData         fi.Resource
	Metadata         map[string]string
	AvailabilityZone *string
	SecurityGroups   []string
	FloatingIP       *FloatingIP
	ConfigDrive      *bool
	Status           *string

	Lifecycle fi.Lifecycle

	// WellKnownServices indicates which services are supported by this resource.
	// This field is internal and is not rendered to the cloud.
	WellKnownServices []wellknownservices.WellKnownService
}

+kops:fitask

func (*Instance) CheckChanges added in v1.15.1

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

func (*Instance) CompareWithID added in v1.15.1

func (e *Instance) CompareWithID() *string

func (*Instance) Find added in v1.15.1

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

func (*Instance) FindAddresses added in v1.24.0

func (e *Instance) FindAddresses(context *fi.CloudupContext) ([]string, error)

func (*Instance) GetDependencies added in v1.15.1

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

GetDependencies returns the dependencies of the Instance task

func (*Instance) GetLifecycle added in v1.15.1

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

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

func (*Instance) GetName added in v1.15.1

func (o *Instance) GetName() *string

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

func (*Instance) GetWellKnownServices added in v1.29.0

func (e *Instance) GetWellKnownServices() []wellknownservices.WellKnownService

GetWellKnownServices implements fi.HasAddress::GetWellKnownServices. It indicates which services we support with this instance.

func (*Instance) RenderOpenstack added in v1.15.1

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

func (*Instance) Run added in v1.15.1

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

func (*Instance) SetLifecycle added in v1.15.1

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

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

func (*Instance) ShouldCreate added in v1.15.1

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

func (*Instance) String added in v1.15.1

func (o *Instance) String() string

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

type LB added in v1.15.1

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

+kops:fitask

func NewLBTaskFromCloud added in v1.15.1

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

func (*LB) CheckChanges added in v1.15.1

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

func (*LB) CompareWithID added in v1.15.1

func (s *LB) CompareWithID() *string

func (*LB) Find added in v1.15.1

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

func (*LB) GetDependencies added in v1.15.1

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

GetDependencies returns the dependencies of the Instance task

func (*LB) GetLifecycle added in v1.15.1

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

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

func (*LB) GetName added in v1.15.1

func (o *LB) GetName() *string

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

func (*LB) RenderOpenstack added in v1.15.1

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

func (*LB) Run added in v1.15.1

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

func (*LB) SetLifecycle added in v1.15.1

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

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

func (*LB) String added in v1.15.1

func (o *LB) String() string

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

type LBListener added in v1.15.1

type LBListener struct {
	ID           *string
	Name         *string
	Port         *int
	Pool         *LBPool
	Lifecycle    fi.Lifecycle
	AllowedCIDRs []string
}

+kops:fitask

func NewLBListenerTaskFromCloud added in v1.15.1

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

func (*LBListener) CheckChanges added in v1.15.1

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

func (*LBListener) CompareWithID added in v1.15.1

func (s *LBListener) CompareWithID() *string

func (*LBListener) Find added in v1.15.1

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

func (*LBListener) GetDependencies added in v1.15.1

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

GetDependencies returns the dependencies of the Instance task

func (*LBListener) GetLifecycle added in v1.15.1

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

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

func (*LBListener) GetName added in v1.15.1

func (o *LBListener) GetName() *string

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

func (*LBListener) RenderOpenstack added in v1.15.1

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

func (*LBListener) Run added in v1.15.1

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

func (*LBListener) SetLifecycle added in v1.15.1

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

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

func (*LBListener) String added in v1.15.1

func (o *LBListener) String() string

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

type LBPool added in v1.15.1

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

+kops:fitask

func NewLBPoolTaskFromCloud added in v1.15.1

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

func (*LBPool) CheckChanges added in v1.15.1

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

func (*LBPool) CompareWithID added in v1.15.1

func (s *LBPool) CompareWithID() *string

func (*LBPool) Find added in v1.15.1

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

func (*LBPool) GetDependencies added in v1.15.1

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

GetDependencies returns the dependencies of the Instance task

func (*LBPool) GetLifecycle added in v1.15.1

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

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

func (*LBPool) GetName added in v1.15.1

func (o *LBPool) GetName() *string

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

func (*LBPool) RenderOpenstack added in v1.15.1

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

func (*LBPool) Run added in v1.15.1

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

func (*LBPool) SetLifecycle added in v1.15.1

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

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

func (*LBPool) String added in v1.15.1

func (o *LBPool) String() string

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

type Network

type Network struct {
	ID                    *string
	Name                  *string
	Lifecycle             fi.Lifecycle
	Tag                   *string
	AvailabilityZoneHints []*string
}

+kops:fitask

func NewNetworkTaskFromCloud added in v1.15.1

func NewNetworkTaskFromCloud(cloud openstack.OpenstackCloud, lifecycle fi.Lifecycle, network *networks.Network, networkName *string) (*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.CloudupContext) (*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.CloudupContext) error

func (*Network) SetLifecycle

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

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

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

type PoolAssociation added in v1.15.1

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

+kops:fitask

func (*PoolAssociation) CheckChanges added in v1.15.1

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

func (*PoolAssociation) CompareWithID added in v1.15.1

func (s *PoolAssociation) CompareWithID() *string

func (*PoolAssociation) Find added in v1.15.1

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

func (*PoolAssociation) GetDependencies added in v1.15.1

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

GetDependencies returns the dependencies of the Instance task

func (*PoolAssociation) GetLifecycle added in v1.15.1

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

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

func (*PoolAssociation) GetName added in v1.15.1

func (o *PoolAssociation) GetName() *string

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

func (*PoolAssociation) RenderOpenstack added in v1.15.1

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

func (*PoolAssociation) Run added in v1.15.1

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

func (*PoolAssociation) SetLifecycle added in v1.15.1

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

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

func (*PoolAssociation) String added in v1.15.1

func (o *PoolAssociation) String() string

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

type PoolMonitor added in v1.23.0

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

+kops:fitask

func (*PoolMonitor) CheckChanges added in v1.23.0

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

func (*PoolMonitor) CompareWithID added in v1.23.0

func (p *PoolMonitor) CompareWithID() *string

func (*PoolMonitor) Find added in v1.23.0

func (p *PoolMonitor) Find(context *fi.CloudupContext) (*PoolMonitor, error)

func (*PoolMonitor) GetDependencies added in v1.23.0

func (p *PoolMonitor) GetDependencies(tasks map[string]fi.CloudupTask) []fi.CloudupTask

GetDependencies returns the dependencies of the Instance task

func (*PoolMonitor) GetLifecycle added in v1.23.0

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

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

func (*PoolMonitor) GetName added in v1.23.0

func (o *PoolMonitor) GetName() *string

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

func (*PoolMonitor) RenderOpenstack added in v1.23.0

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

func (*PoolMonitor) Run added in v1.23.0

func (p *PoolMonitor) Run(context *fi.CloudupContext) error

func (*PoolMonitor) SetLifecycle added in v1.23.0

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

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

func (*PoolMonitor) String added in v1.23.0

func (o *PoolMonitor) String() string

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

type Port added in v1.15.1

type Port struct {
	ID                       *string
	Name                     *string
	InstanceGroupName        *string
	Network                  *Network
	Subnets                  []*Subnet
	SecurityGroups           []*SecurityGroup
	AdditionalSecurityGroups []string
	Lifecycle                fi.Lifecycle
	Tags                     []string
	AllowedAddressPairs      []ports.AddressPair

	// WellKnownServices indicates which services are supported by this resource.
	// This field is internal and is not rendered to the cloud.
	WellKnownServices []wellknownservices.WellKnownService
}

+kops:fitask

func (*Port) CheckChanges added in v1.15.1

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

func (*Port) CompareWithID added in v1.15.1

func (s *Port) CompareWithID() *string

func (*Port) Find added in v1.15.1

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

func (*Port) FindAddresses added in v1.26.0

func (s *Port) FindAddresses(context *fi.CloudupContext) ([]string, error)

func (*Port) GetDependencies added in v1.15.1

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

GetDependencies returns the dependencies of the Port task

func (*Port) GetLifecycle added in v1.15.1

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

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

func (*Port) GetName added in v1.15.1

func (o *Port) GetName() *string

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

func (*Port) GetWellKnownServices added in v1.29.0

func (s *Port) GetWellKnownServices() []wellknownservices.WellKnownService

GetWellKnownServices implements fi.HasAddress::GetWellKnownServices. It indicates which services we support with this load balancer.

func (*Port) RenderOpenstack added in v1.15.1

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

func (*Port) Run added in v1.15.1

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

func (*Port) SetLifecycle added in v1.15.1

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

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

func (*Port) String added in v1.15.1

func (o *Port) String() string

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

type PortRemovalRule added in v1.15.1

type PortRemovalRule struct {
	Port int
}

func (*PortRemovalRule) Matches added in v1.15.1

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

func (*PortRemovalRule) String added in v1.15.1

func (r *PortRemovalRule) String() string

type RemovalRule added in v1.15.1

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

RemovalRule is a rule that filters the permissions we should remove

func ParseRemovalRule added in v1.15.1

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
	AvailabilityZoneHints []*string
}

+kops:fitask

func NewRouterTaskFromCloud added in v1.15.1

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

NewRouterTaskFromCloud initializes and returns a new Router

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.CloudupContext) (*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.CloudupContext) error

func (*Router) SetLifecycle

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

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

func (*Router) String

func (o *Router) String() string

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

type RouterInterface

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

+kops:fitask

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.CloudupContext) (*RouterInterface, error)

func (*RouterInterface) GetDependencies added in v1.15.1

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

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.CloudupContext) error

func (*RouterInterface) SetLifecycle

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

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

func (*RouterInterface) String

func (o *RouterInterface) String() string

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

type SSHKey

type SSHKey struct {
	Name      *string
	Lifecycle fi.Lifecycle

	PublicKey fi.Resource

	KeyFingerprint *string
}

+kops:fitask

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.CloudupContext) (*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) Normalize added in v1.26.0

func (e *SSHKey) Normalize(c *fi.CloudupContext) error

func (*SSHKey) RenderOpenstack

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

func (*SSHKey) Run

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

func (*SSHKey) SetLifecycle

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

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

func (*SSHKey) String

func (o *SSHKey) String() string

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

type SecurityGroup

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

+kops:fitask

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.CloudupContext) (*SecurityGroup, error)

func (*SecurityGroup) FindDeletions added in v1.15.1

func (s *SecurityGroup) FindDeletions(c *fi.CloudupContext) ([]fi.CloudupDeletion, 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.CloudupContext) error

func (*SecurityGroup) SetLifecycle

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

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

func (*SecurityGroup) String

func (o *SecurityGroup) String() string

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

type SecurityGroupRule

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

func (*SecurityGroupRule) CheckChanges

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

func (*SecurityGroupRule) CompareWithID

func (r *SecurityGroupRule) CompareWithID() *string

func (*SecurityGroupRule) Find

func (*SecurityGroupRule) FindDeletions added in v1.19.0

func (o *SecurityGroupRule) FindDeletions(c *fi.CloudupContext) ([]fi.CloudupDeletion, error)

func (*SecurityGroupRule) GetDependencies added in v1.15.1

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

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 added in v1.15.1

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.CloudupContext) error

func (*SecurityGroupRule) SetLifecycle

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

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

func (*SecurityGroupRule) String

func (o *SecurityGroupRule) String() string

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

type SecurityGroupsByID added in v1.21.0

type SecurityGroupsByID []*SecurityGroup

SecurityGroupsByID implements sort.Interface based on the ID field.

func (SecurityGroupsByID) Len added in v1.21.0

func (a SecurityGroupsByID) Len() int

func (SecurityGroupsByID) Less added in v1.21.0

func (a SecurityGroupsByID) Less(i, j int) bool

func (SecurityGroupsByID) Swap added in v1.21.0

func (a SecurityGroupsByID) Swap(i, j int)

type ServerGroup added in v1.15.1

type ServerGroup struct {
	ID          *string
	Name        *string
	ClusterName *string
	IGMap       map[string]*int32
	Policies    []string
	Lifecycle   fi.Lifecycle
}

+kops:fitask

func (*ServerGroup) CheckChanges added in v1.15.1

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

func (*ServerGroup) CompareWithID added in v1.15.1

func (s *ServerGroup) CompareWithID() *string

func (*ServerGroup) Find added in v1.15.1

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

func (*ServerGroup) GetLifecycle added in v1.15.1

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

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

func (*ServerGroup) GetName added in v1.15.1

func (o *ServerGroup) GetName() *string

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

func (*ServerGroup) RenderOpenstack added in v1.15.1

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

func (*ServerGroup) Run added in v1.15.1

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

func (*ServerGroup) SetLifecycle added in v1.15.1

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

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

func (*ServerGroup) String added in v1.15.1

func (o *ServerGroup) String() string

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

type Subnet

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

+kops:fitask

func NewSubnetTaskFromCloud added in v1.15.1

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.CloudupContext) (*Subnet, error)

func (*Subnet) GetDependencies added in v1.15.1

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

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.CloudupContext) error

func (*Subnet) SetLifecycle

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

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

func (*Subnet) String

func (o *Subnet) String() string

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

type Volume

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

+kops:fitask

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.CloudupContext) (*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) Normalize added in v1.26.0

func (c *Volume) Normalize(context *fi.CloudupContext) error

func (*Volume) RenderOpenstack

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

func (*Volume) Run

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

func (*Volume) SetLifecycle

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

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

func (*Volume) String

func (o *Volume) String() string

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

Jump to

Keyboard shortcuts

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