security_policy

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client *golangsdk.ServiceClient, id string) (err error)

Types

type CreateOpts

type CreateOpts struct {
	Name        string   `json:"name,omitempty"`
	Description string   `json:"description,omitempty"`
	Protocols   []string `json:"protocols" required:"true"`
	Ciphers     []string `json:"ciphers" required:"true"`
}

type ListOpts

type ListOpts struct {
	Marker      string   `q:"marker"`
	Limit       string   `q:"limit"`
	PageReverse bool     `q:"page_reverse"`
	ID          []string `q:"id"`
	Name        []string `q:"name"`
	Description []string `q:"description"`
	Protocols   []string `q:"protocols"`
	Ciphers     []string `q:"ciphers"`
}

type ListenerRef

type ListenerRef struct {
	ID string `json:"id"`
}

type PolicyRef

type PolicyRef struct {
	ID          string        `json:"id"`
	ProjectId   string        `json:"project_id"`
	Name        string        `json:"name"`
	Description string        `json:"description"`
	Listeners   []ListenerRef `json:"listeners"`
	Protocols   []string      `json:"protocols"`
	Ciphers     []string      `json:"ciphers"`
	CreatedAt   string        `json:"created_at"`
	UpdatedAt   string        `json:"updated_at"`
}

func List

func List(client *golangsdk.ServiceClient, opts ListOpts) ([]PolicyRef, error)

type SecurityPolicy

type SecurityPolicy struct {
	SecurityPolicy PolicyRef `json:"security_policy"`
	RequestId      string    `json:"request_id"`
}

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*SecurityPolicy, error)

func Get

func Get(client *golangsdk.ServiceClient, id string) (*SecurityPolicy, error)

func Update

func Update(client *golangsdk.ServiceClient, opts UpdateOpts, id string) (*SecurityPolicy, error)

type SystemPolicy

type SystemPolicy struct {
	ProjectId string `json:"project_id"`
	Name      string `json:"name"`
	Protocols string `json:"protocols"`
	Ciphers   string `json:"ciphers"`
}

func ListSystemPolicies

func ListSystemPolicies(client *golangsdk.ServiceClient) ([]SystemPolicy, error)

type UpdateOpts

type UpdateOpts struct {
	Name        string   `json:"name,omitempty"`
	Description string   `json:"description,omitempty"`
	Protocols   []string `json:"protocols,omitempty"`
	Ciphers     []string `json:"ciphers,omitempty"`
}

Jump to

Keyboard shortcuts

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