Documentation ¶
Index ¶
- func Delete(_ context.Context, db gorpmapper.SqlExecutorWithTx, e *sdk.Entity) error
- func Insert(ctx context.Context, db gorpmapper.SqlExecutorWithTx, e *sdk.Entity) error
- func LoadAllUnsafe(ctx context.Context, db gorp.SqlExecutor) ([]sdk.Entity, error)
- func LoadAndUnmarshalByRefTypeName(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ...) error
- func LoadByRefTypeNameCommit(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ...) (*sdk.Entity, error)
- func LoadByRepository(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ...) ([]sdk.Entity, error)
- func LoadByRepositoryAndRefAndCommit(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ...) ([]sdk.Entity, error)
- func LoadByTypeAndRefCommit(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, t string, ...) ([]sdk.Entity, error)
- func LoadEntityByPathAndRefAndCommit(ctx context.Context, db gorp.SqlExecutor, repositoryID string, path string, ...) (*sdk.Entity, error)
- func UnsafeLoadAllByType(_ context.Context, db gorp.SqlExecutor, t string) ([]sdk.EntityFullName, error)
- func UnsafeLoadAllByTypeAndProjectKeys(_ context.Context, db gorp.SqlExecutor, t string, keys []string) ([]sdk.EntityFullName, error)
- func Update(ctx context.Context, db gorpmapper.SqlExecutorWithTx, e *sdk.Entity) error
- func WorkerModelDecryptSecrets(ctx context.Context, db gorp.SqlExecutor, projectID int64, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶ added in v0.53.0
func Delete(_ context.Context, db gorpmapper.SqlExecutorWithTx, e *sdk.Entity) error
func Insert ¶
func Insert(ctx context.Context, db gorpmapper.SqlExecutorWithTx, e *sdk.Entity) error
func LoadAllUnsafe ¶ added in v0.53.1
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 LoadByRefTypeNameCommit ¶ added in v0.53.1
func LoadByRefTypeNameCommit(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ref string, t 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.GetOptionFunc) ([]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.GetOptionFunc) ([]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.GetOptionFunc) ([]sdk.Entity, error)
LoadByTypeAndRef loads an entity by his repository, type and ref
func LoadEntityByPathAndRefAndCommit ¶ added in v0.53.1
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 Update ¶
func Update(ctx context.Context, db gorpmapper.SqlExecutorWithTx, e *sdk.Entity) 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.
Click to show internal directories.
Click to hide internal directories.