clouduploader

package
v0.0.0-...-b5acc33 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NilCompare

func NilCompare[T constraints.Ordered](a *T, b *T) int

Types

type CloudUploader

type CloudUploader struct {
	// contains filtered or unexported fields
}

func NewCloudUploader

func NewCloudUploader(intentsHolder *intentsstore.IntentsHolder, config Config, client cloudclient.CloudClient) *CloudUploader

func (*CloudUploader) NotifyAWSIntents

func (c *CloudUploader) NotifyAWSIntents(ctx context.Context, intents []awsintentsholder.AWSIntent)

func (*CloudUploader) NotifyExternalTrafficIntents

func (c *CloudUploader) NotifyExternalTrafficIntents(ctx context.Context, intents []externaltrafficholder.TimestampedExternalTrafficIntent)

func (*CloudUploader) NotifyIncomingTrafficIntents

func (c *CloudUploader) NotifyIncomingTrafficIntents(ctx context.Context, intents []incomingtrafficholder.TimestampedIncomingTrafficIntent)

func (*CloudUploader) NotifyIntents

func (c *CloudUploader) NotifyIntents(ctx context.Context, intents []intentsstore.TimestampedIntent)

func (*CloudUploader) PeriodicStatusReport

func (c *CloudUploader) PeriodicStatusReport(ctx context.Context)

type Config

type Config struct {
	UploadInterval  time.Duration
	UploadBatchSize int
}

func ConfigFromViper

func ConfigFromViper() Config

type IntentsMatcher

type IntentsMatcher struct {
	// contains filtered or unexported fields
}

IntentsMatcher Implement gomock.Matcher interface for []cloudclient.IntentInput

func GetMatcher

func GetMatcher(expected []cloudclient.IntentInput) IntentsMatcher

func (IntentsMatcher) Got

func (m IntentsMatcher) Got(got interface{}) string

func (IntentsMatcher) Matches

func (m IntentsMatcher) Matches(x interface{}) bool

func (IntentsMatcher) String

func (m IntentsMatcher) String() string

Jump to

Keyboard shortcuts

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