ports

package
v0.6.14 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 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 added in v0.4.27

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

AllowAddressPairsOpts represents options used to allow address pairs.

func (AllowAddressPairsOpts) ToAllowAddressPairsMap added in v0.4.27

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

ToAllowAddressPairsMap builds a request body from AllowAddressPairsOpts.

func (AllowAddressPairsOpts) Validate added in v0.4.27

func (opts AllowAddressPairsOpts) Validate() error

Validate

type AllowAddressPairsOptsBuilder added in v0.4.27

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

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

type AssignResult added in v0.4.27

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

func AllowAddressPairs added in v0.4.27

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

AllowAddressPairs assign allowed address pairs for instance port

func (AssignResult) Extract added in v0.4.27

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

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

func (AssignResult) ExtractInto added in v0.4.27

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

type InstancePort added in v0.4.27

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