Documentation
¶
Overview ¶
Package flow_logs manages VPC flow logs.
Index ¶
- func Delete(client *golangsdk.ServiceClient, flowLogID string) error
- type CreateOpts
- type FlowLog
- func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*FlowLog, error)
- func ExtractFlowLogs(page pagination.NewPage) ([]FlowLog, error)
- func Get(client *golangsdk.ServiceClient, flowLogID string) (*FlowLog, error)
- func List(client *golangsdk.ServiceClient, opts ListOpts) ([]FlowLog, error)
- func Update(client *golangsdk.ServiceClient, flowLogID string, opts UpdateOpts) (*FlowLog, error)
- type FlowLogPage
- type ListOpts
- type UpdateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOpts ¶
type CreateOpts struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ResourceType string `json:"resource_type" required:"true"`
ResourceID string `json:"resource_id" required:"true"`
TrafficType string `json:"traffic_type" required:"true"`
LogGroupID string `json:"log_group_id" required:"true"`
LogTopicID string `json:"log_topic_id" required:"true"`
IndexEnabled *bool `json:"index_enabled,omitempty"`
}
type FlowLog ¶
type FlowLog struct {
ID string `json:"id"`
Name string `json:"name"`
TenantID string `json:"tenant_id"`
Description string `json:"description"`
ResourceType string `json:"resource_type"`
ResourceID string `json:"resource_id"`
TrafficType string `json:"traffic_type"`
LogGroupID string `json:"log_group_id"`
LogTopicID string `json:"log_topic_id"`
IndexEnabled bool `json:"index_enabled"`
AdminState bool `json:"admin_state"`
Status string `json:"status"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*FlowLog, error)
func ExtractFlowLogs ¶
func ExtractFlowLogs(page pagination.NewPage) ([]FlowLog, error)
func Update ¶
func Update(client *golangsdk.ServiceClient, flowLogID string, opts UpdateOpts) (*FlowLog, error)
type FlowLogPage ¶
type FlowLogPage struct {
pagination.NewPageResult
}
func (FlowLogPage) NewIsEmpty ¶
func (p FlowLogPage) NewIsEmpty() (bool, error)
func (FlowLogPage) NewNextPageURL ¶
func (p FlowLogPage) NewNextPageURL() (string, error)
type ListOpts ¶
type ListOpts struct {
ID string `q:"id"`
Name string `q:"name"`
TenantID string `q:"tenant_id"`
Description string `q:"description"`
ResourceType string `q:"resource_type"`
ResourceID string `q:"resource_id"`
TrafficType string `q:"traffic_type"`
LogGroupID string `q:"log_group_id"`
LogTopicID string `q:"log_topic_id"`
Status string `q:"status"`
Limit *int `q:"limit"`
Marker string `q:"marker"`
}
type UpdateOpts ¶
Click to show internal directories.
Click to hide internal directories.