invocationdb

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvocationDB

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

func NewInvocationDB

func NewInvocationDB(env environment.Env, h *db.DBHandle) *InvocationDB

func (*InvocationDB) DeleteInvocation

func (d *InvocationDB) DeleteInvocation(ctx context.Context, invocationID string) error

func (*InvocationDB) DeleteInvocationWithPermsCheck

func (d *InvocationDB) DeleteInvocationWithPermsCheck(ctx context.Context, authenticatedUser *interfaces.UserInfo, invocationID string) error

func (*InvocationDB) FillCounts

func (d *InvocationDB) FillCounts(ctx context.Context, stat *telpb.TelemetryStat) error

func (*InvocationDB) InsertOrUpdateInvocation

func (d *InvocationDB) InsertOrUpdateInvocation(ctx context.Context, ti *tables.Invocation) error

func (*InvocationDB) LookupExpiredInvocations

func (d *InvocationDB) LookupExpiredInvocations(ctx context.Context, cutoffTime time.Time, limit int) ([]*tables.Invocation, error)

func (*InvocationDB) LookupGroupFromInvocation

func (d *InvocationDB) LookupGroupFromInvocation(ctx context.Context, invocationID string) (*tables.Group, error)

func (*InvocationDB) LookupInvocation

func (d *InvocationDB) LookupInvocation(ctx context.Context, invocationID string) (*tables.Invocation, error)

func (*InvocationDB) UpdateInvocationACL

func (d *InvocationDB) UpdateInvocationACL(ctx context.Context, authenticatedUser *interfaces.UserInfo, invocationID string, acl *aclpb.ACL) error

Jump to

Keyboard shortcuts

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