collections

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeName          = "nodes"
	PodName           = "pods"
	ContainerName     = "containers"
	VolumeName        = "volumes"
	RoleName          = "roles"
	RoleBindingName   = "rolebindings"
	IdentityName      = "identities"
	PermissionSetName = "permissionsets"
	EndpointName      = "endpoints"
)
View Source
const (
	DefaultBatchSize = 1000
)
View Source
const (
	TestBatchSize = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection interface {
	// Name returns the name of the collection.
	Name() string

	// BatchSize returns the batch size of bulk inserts (and threshold for triggering a flush).
	BatchSize() int
}

Collection provides a common abstraction of a SQL database table or a NoSQL object collection to work with the storedb provider interface.

type Container

type Container struct {
}

func (Container) BatchSize

func (c Container) BatchSize() int

func (Container) Name

func (c Container) Name() string

type Endpoint

type Endpoint struct {
}

func (Endpoint) BatchSize

func (c Endpoint) BatchSize() int

func (Endpoint) Name

func (c Endpoint) Name() string

type FakeCollection

type FakeCollection struct {
}

func (FakeCollection) BatchSize

func (c FakeCollection) BatchSize() int

func (FakeCollection) Name

func (c FakeCollection) Name() string

type Identity

type Identity struct {
}

func (Identity) BatchSize

func (c Identity) BatchSize() int

func (Identity) Name

func (c Identity) Name() string

type Node

type Node struct {
}

func (Node) BatchSize

func (c Node) BatchSize() int

func (Node) Name

func (c Node) Name() string

type PermissionSet

type PermissionSet struct {
}

func (PermissionSet) BatchSize

func (c PermissionSet) BatchSize() int

func (PermissionSet) Name

func (c PermissionSet) Name() string

type Pod

type Pod struct {
}

func (Pod) BatchSize

func (c Pod) BatchSize() int

func (Pod) Name

func (c Pod) Name() string

type Role

type Role struct {
}

func (Role) BatchSize

func (c Role) BatchSize() int

func (Role) Name

func (c Role) Name() string

type RoleBinding

type RoleBinding struct {
}

func (RoleBinding) BatchSize

func (c RoleBinding) BatchSize() int

func (RoleBinding) Name

func (c RoleBinding) Name() string

type Volume

type Volume struct {
}

func (Volume) BatchSize

func (c Volume) BatchSize() int

func (Volume) Name

func (c Volume) Name() string

Jump to

Keyboard shortcuts

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