flowlog

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound flow log was not found
	ErrNotFound = errors.New("flow log not found")
)

Functions

func EqualFlowLogProperties

func EqualFlowLogProperties(target customResource, observed sdkgo.FlowLogProperties) bool

EqualFlowLogProperties compares a target flow log customResource to the observed sdkgo.FlowLogProperties

func GenerateCreateInput

func GenerateCreateInput(cr customResource) sdkgo.FlowLog

GenerateCreateInput returns sdkgo.FlowLog for Create requests based on CR spec

func GenerateUpdateInput

func GenerateUpdateInput(cr customResource) sdkgo.FlowLogProperties

GenerateUpdateInput returns sdkgo.FlowLogProperties for Update requests based on CR spec

func IsUpToDate

func IsUpToDate(cr customResource, observed sdkgo.FlowLog) bool

IsUpToDate returns true if the FlowLog is up-to-date or false otherwise

func SetStatus

func SetStatus(in customResource, flowLog sdkgo.FlowLog)

SetStatus sets the status of the flow log custom resource observation based on sdkgo.FlowLog

Types

type NLBFlowLog

type NLBFlowLog interface {
	CheckDuplicateFlowLog(ctx context.Context, datacenterID, nlbID, flowLogName string) (string, error)
	GetFlowLogByID(ctx context.Context, datacenterID, nlbID, flowLogID string) (sdkgo.FlowLog, error)
	CreateFlowLog(ctx context.Context, datacenterID, nlbID string, flowLog sdkgo.FlowLog) (sdkgo.FlowLog, error)
	UpdateFlowLog(ctx context.Context, datacenterID, nlbID, flowLogID string, flowLog sdkgo.FlowLogProperties) (sdkgo.FlowLog, error)
	DeleteFlowLog(ctx context.Context, datacenterID, nlbID, flowLogID string) error
}

NLBFlowLog wrapper for IONOS NetworkLoadBalancer flow log methods

func NLBClient

func NLBClient(svc *clients.IonosServices) NLBFlowLog

NLBClient returns a new NetworkLoadBalancer flow log client

Jump to

Keyboard shortcuts

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