ports

package
v0.6.28 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MPL-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 AllowAddressPairsOpts

type AllowAddressPairsOpts struct {
	AllowedAddressPairs []reservedfixedips.AllowedAddressPairs `json:"allowed_address_pairs"`
}

AllowAddressPairsOpts represents options used to allow address pairs.

func (AllowAddressPairsOpts) ToAllowAddressPairsMap

func (opts AllowAddressPairsOpts) ToAllowAddressPairsMap() (map[string]interface{}, error)

ToAllowAddressPairsMap builds a request body from AllowAddressPairsOpts.

func (AllowAddressPairsOpts) Validate

func (opts AllowAddressPairsOpts) Validate() error

Validate

type AllowAddressPairsOptsBuilder

type AllowAddressPairsOptsBuilder interface {
	ToAllowAddressPairsMap() (map[string]interface{}, error)
}

AllowAddressPairsOptsBuilder allows extensions to add additional parameters to the AllowAddressPairs request.

type AssignResult

type AssignResult struct {
	// contains filtered or unexported fields
}

func AllowAddressPairs

func AllowAddressPairs(c *gcorecloud.ServiceClient, portID string, opts AllowAddressPairsOptsBuilder) (r AssignResult)

AllowAddressPairs assign allowed address pairs for instance port

func (AssignResult) Extract

func (r AssignResult) Extract() (*InstancePort, error)

Extract is a function that accepts a result and extracts a security group resource.

func (AssignResult) ExtractInto

func (r AssignResult) ExtractInto(v interface{}) error

type InstancePort

type InstancePort struct {
	NetworkID           string                                 `json:"network_id"`
	AllowedAddressPairs []reservedfixedips.AllowedAddressPairs `json:"allowed_address_pairs"`
	InstanceID          string                                 `json:"instance_id"`
	PortID              string                                 `json:"port_id"`
}

type UpdateResult

type UpdateResult struct {
	// contains filtered or unexported fields
}

UpdateResult represents the result of a enable or disable operation. Call its Extract method to interpret it as a Interface.

func DisablePortSecurity

func DisablePortSecurity(c *gcorecloud.ServiceClient, portID string) (r UpdateResult)

DisablePortSecurity

func EnablePortSecurity

func EnablePortSecurity(c *gcorecloud.ServiceClient, portID string) (r UpdateResult)

EnablePortSecurity

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*instances.Interface, error)

Extract is a function that accepts a result and extracts a security group resource.

func (UpdateResult) ExtractInto

func (r UpdateResult) ExtractInto(v interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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