acl

package
v0.0.0-...-d823fe1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLPolicy

type ACLPolicy struct {
	AllowAddressNetmasks []AllowAddressNetmasks `json:"allow_address_netmasks,omitempty"`
	AllowIPRanges        []AllowIPRanges        `json:"allow_ip_ranges,omitempty"`
}

ACLPolicy provides options used to create, update or get a identity acl.

func (ACLPolicy) ToAPIACLPolicyMap

func (aclPolicy ACLPolicy) ToAPIACLPolicyMap() (map[string]interface{}, error)

ToAPIACLPolicyMap formats a create or update opts into a modify request for api access.

func (ACLPolicy) ToConsoleACLPolicyMap

func (aclPolicy ACLPolicy) ToConsoleACLPolicyMap() (map[string]interface{}, error)

ToConsoleACLPolicyMap formats a create or update opts into a modify request for console access.

type ACLResult

type ACLResult struct {
	golangsdk.Result
}

ACLResult is response of the ACL policy for consloe or api access.

func APIACLPolicyGet

func APIACLPolicyGet(client *golangsdk.ServiceClient, domainID string) (r ACLResult)

APIACLPolicyGet retrieves details on iam identity acl for api access, by domain ID.

func APIACLPolicyUpdate

func APIACLPolicyUpdate(client *golangsdk.ServiceClient, opts APIACLPolicyBuilder, domainID string) (r ACLResult)

APIACLPolicyUpdate can creates a new acl or updates a exist acl for api access.

func ConsoleACLPolicyGet

func ConsoleACLPolicyGet(client *golangsdk.ServiceClient, domainID string) (r ACLResult)

ConsoleACLPolicyGet retrieves details on iam identity acl for console access, by domain ID.

func ConsoleACLPolicyUpdate

func ConsoleACLPolicyUpdate(client *golangsdk.ServiceClient, opts ConsoleACLPolicyBuilder, domainID string) (r ACLResult)

ConsoleACLPolicyUpdate can creates a new acl or updates a exist acl for console access.

func (ACLResult) APIExtract

func (r ACLResult) APIExtract() (*ACLPolicy, error)

APIExtract interprets any acl results as a acl policy for api access.

func (ACLResult) ConsoleExtract

func (r ACLResult) ConsoleExtract() (*ACLPolicy, error)

ConsoleExtract interprets any acl results as a acl policy for console access.

type APIACLPolicyBuilder

type APIACLPolicyBuilder interface {
	ToAPIACLPolicyMap() (map[string]interface{}, error)
}

APIACLPolicyBuilder allows extensions to add additional parameters to the modify request.

type AllowAddressNetmasks

type AllowAddressNetmasks struct {
	AddressNetmask string `json:"address_netmask" required:"true"`
	Description    string `json:"description,omitempty"`
}

AllowAddressNetmasks provides options for creating, updating or getting a IPv4 CIDR blocks.

type AllowIPRanges

type AllowIPRanges struct {
	IPRange     string `json:"ip_range" required:"true"`
	Description string `json:"description,omitempty"`
}

AllowIPRanges provides options for creating, updating or getting a IP address ranges.

type ConsoleACLPolicyBuilder

type ConsoleACLPolicyBuilder interface {
	ToConsoleACLPolicyMap() (map[string]interface{}, error)
}

ConsoleACLPolicyBuilder allows extensions to add additional parameters to the modify request.

Jump to

Keyboard shortcuts

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