flow_logs

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package flow_logs manages VPC flow logs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

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

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 Get

func Get(client *golangsdk.ServiceClient, flowLogID string) (*FlowLog, error)

func List

func List(client *golangsdk.ServiceClient, opts ListOpts) ([]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

type UpdateOpts struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	AdminState  *bool   `json:"admin_state,omitempty"`
}

Jump to

Keyboard shortcuts

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