Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOpts ¶
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"` }
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)
Click to show internal directories.
Click to hide internal directories.