entity

package
v0.55.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete added in v0.53.0

func LoadAllUnsafe added in v0.53.1

func LoadAllUnsafe(ctx context.Context, db gorp.SqlExecutor) ([]sdk.Entity, error)

func LoadAndUnmarshalByRefTypeName added in v0.53.1

func LoadAndUnmarshalByRefTypeName(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ref string, commit string, t string, name string, out interface{}, opts ...gorpmapping.GetOptionFunc) error

LoadAndUnmarshalByRefTypeName loads an entity by his repository, ref, type, name and unmarshal it

func LoadByID added in v0.55.2

func LoadByID(ctx context.Context, db gorp.SqlExecutor, entityID string) (*sdk.Entity, error)

func LoadByRefTypeNameCommit added in v0.53.1

func LoadByRefTypeNameCommit(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ref string, entityType string, name string, commit string, opts ...gorpmapping.GetOptionFunc) (*sdk.Entity, error)

LoadByRefTypeNameCommit loads an entity by its repository, ref, type, name and commit

func LoadByRepository added in v0.53.0

func LoadByRepository(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, opts ...gorpmapping.GetAllOptionFunc) ([]sdk.Entity, error)

LoadByRepository loads all an entities in the given repository,

func LoadByRepositoryAndRefAndCommit added in v0.53.1

func LoadByRepositoryAndRefAndCommit(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ref string, commit string, opts ...gorpmapping.GetAllOptionFunc) ([]sdk.Entity, error)

LoadByRepositoryAndRef loads an entity by his repository, ref

func LoadByTypeAndRefCommit added in v0.53.1

func LoadByTypeAndRefCommit(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, t string, ref string, commit string, opts ...gorpmapping.GetAllOptionFunc) ([]sdk.Entity, error)

LoadByTypeAndRef loads an entity by his repository, type and ref

func LoadEntityByPathAndRefAndCommit added in v0.53.1

func LoadEntityByPathAndRefAndCommit(ctx context.Context, db gorp.SqlExecutor, repositoryID string, path string, ref string, commit string) (*sdk.Entity, error)

func LoadHeadByTypeAndRef added in v0.55.2

func LoadHeadByTypeAndRef(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, t string, ref string, opts ...gorpmapping.GetAllOptionFunc) ([]sdk.Entity, error)

LoadHeadByTypeAndRef loads an entity by his repository, type and ref

func LoadHeadEntitiesByRepositoryAndRef added in v0.55.2

func LoadHeadEntitiesByRepositoryAndRef(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ref string, opts ...gorpmapping.GetAllOptionFunc) ([]sdk.Entity, error)

LoadByRepositoryAndRef loads an entity by his repository, ref

func LoadHeadEntityByRefTypeName added in v0.55.2

func LoadHeadEntityByRefTypeName(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ref string, entityType string, name string, opts ...gorpmapping.GetOptionFunc) (*sdk.Entity, error)

func LoadUnmigratedHeadEntities added in v0.55.2

func LoadUnmigratedHeadEntities(ctx context.Context, db gorp.SqlExecutor) ([]sdk.Entity, error)

func UnsafeLoadAllByType added in v0.53.0

func UnsafeLoadAllByType(_ context.Context, db gorp.SqlExecutor, t string) ([]sdk.EntityFullName, error)

func UnsafeLoadAllByTypeAndProjectKeys added in v0.53.0

func UnsafeLoadAllByTypeAndProjectKeys(_ context.Context, db gorp.SqlExecutor, t string, keys []string) ([]sdk.EntityFullName, error)

func WorkerModelDecryptSecrets added in v0.53.0

func WorkerModelDecryptSecrets(ctx context.Context, db gorp.SqlExecutor, projectID int64, wm *sdk.V2WorkerModel, decryptFunc keys.DecryptFunc) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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