Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOpts ¶
type CreateOpts struct { ClusterID string `json:"cluster_uuid" required:"true"` SecurityPolicyTemplateID string `json:"security_policy_uuid" required:"true"` PolicySettings string `json:"policy_settings"` Namespace string `json:"namespace"` Enabled bool `json:"enabled"` }
CreateOpts contains options to create cluster security policy
func (*CreateOpts) Map ¶
func (opts *CreateOpts) Map() (map[string]interface{}, error)
Map builds request params.
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
CreateResult is the response of a Create operations.
func Create ¶
func Create(client *gophercloud.ServiceClient, opts OptsBuilder) (r CreateResult)
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (*SecurityPolicy, error)
Extract parses result into params for security policy.
type DeleteResult ¶
type DeleteResult struct {
gophercloud.ErrResult
}
DeleteResult is the result from a Delete operation. Call its Extract or ExtractErr method to determine if the call succeeded or failed.
func Delete ¶
func Delete(client *gophercloud.ServiceClient, id string) (r DeleteResult)
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
GetResult represents the result of a get operation.
func Get ¶
func Get(client *gophercloud.ServiceClient, id string) (r GetResult)
func (GetResult) Extract ¶
func (r GetResult) Extract() (*SecurityPolicy, error)
Extract parses result into params for security policy.
type OptsBuilder ¶
type SecurityPolicy ¶
type SecurityPolicy struct { UUID string `json:"uuid" required:"true"` ClusterID string `json:"cluster_uuid" required:"true"` SecurityPolicyTemplateID string `json:"security_policy_uuid" required:"true"` PolicySettings string `json:"policy_settings"` Namespace string `json:"namespace"` Enabled bool `json:"enabled"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
type UpdateOpts ¶
type UpdateOpts struct { PolicySettings string `json:"policy_settings"` Namespace string `json:"namespace"` Enabled bool `json:"enabled"` }
func (*UpdateOpts) Map ¶
func (opts *UpdateOpts) Map() (map[string]interface{}, error)
Map builds request params.
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
UpdateResult is the response of a Update operations.
func Update ¶
func Update(client *gophercloud.ServiceClient, id string, opts OptsBuilder) (r UpdateResult)
func (UpdateResult) Extract ¶
func (r UpdateResult) Extract() (*SecurityPolicy, error)
Extract parses result into params for security policy.
Click to show internal directories.
Click to hide internal directories.