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 FakeCollection ¶
type FakeCollection struct { }
func (FakeCollection) BatchSize ¶
func (c FakeCollection) BatchSize() int
func (FakeCollection) Name ¶
func (c FakeCollection) Name() string
type PermissionSet ¶
type PermissionSet struct { }
func (PermissionSet) BatchSize ¶
func (c PermissionSet) BatchSize() int
func (PermissionSet) Name ¶
func (c PermissionSet) Name() string
type RoleBinding ¶
type RoleBinding struct { }
func (RoleBinding) BatchSize ¶
func (c RoleBinding) BatchSize() int
func (RoleBinding) Name ¶
func (c RoleBinding) Name() string
Click to show internal directories.
Click to hide internal directories.