connector

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GcpConnectorGeneric added in v0.1.0

type GcpConnectorGeneric struct {
	BucketName   string
	FullFilePath string
	Generation   int64
}

func NewGeneric added in v0.1.0

func NewGeneric(BucketName string, FullFilePath string) GcpConnectorGeneric

func (*GcpConnectorGeneric) Delete added in v0.1.0

func (gcp *GcpConnectorGeneric) Delete(ctx context.Context) error

func (*GcpConnectorGeneric) GetCurrentLockId added in v0.1.0

func (gcp *GcpConnectorGeneric) GetCurrentLockId(ctx context.Context) (uuid.UUID, error)

Get the current lock ID if there is one at string format and send error if there is no lock, error will be nil if there is a lock that can be retrieve

func (*GcpConnectorGeneric) GetLockPath added in v0.1.0

func (gcp *GcpConnectorGeneric) GetLockPath(ctx context.Context) string

func (*GcpConnectorGeneric) Lock added in v0.1.0

func (gcp *GcpConnectorGeneric) Lock(ctx context.Context) (uuid.UUID, error)

func (*GcpConnectorGeneric) Read added in v0.1.0

func (gcp *GcpConnectorGeneric) Read(ctx context.Context, data interface{}) error

func (*GcpConnectorGeneric) Unlock added in v0.1.0

func (gcp *GcpConnectorGeneric) Unlock(ctx context.Context, lockId uuid.UUID) error

func (*GcpConnectorGeneric) WaitForlock added in v0.1.0

func (gcp *GcpConnectorGeneric) WaitForlock(ctx context.Context, timeout time.Duration, existingLock ...uuid.UUID) (uuid.UUID, error)

Wait for lock to be relase and create a new one

func (*GcpConnectorGeneric) Write added in v0.1.0

func (gcp *GcpConnectorGeneric) Write(ctx context.Context, data interface{}) error

type GcpConnectorNetwork added in v0.1.0

type GcpConnectorNetwork struct {
	GcpConnectorGeneric
	BaseCidrRange string
}

func NewNetwork added in v0.1.0

func NewNetwork(bucketName string, baseCidr string) GcpConnectorNetwork

type NetworkConfig

type NetworkConfig struct {
	Subnets map[string]string `json:"subnets"`
}

Jump to

Keyboard shortcuts

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