Documentation
¶
Index ¶
- type CreateImageInfoParams
- type CreateUserParams
- type CreateUserRow
- type DBTX
- type GetImageInfoByDigestParams
- type GetImageInfoByNameParams
- type ImageInfo
- type Querier
- type Queries
- func (q *Queries) CreateImageInfo(ctx context.Context, arg CreateImageInfoParams) (ImageInfo, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (CreateUserRow, error)
- func (q *Queries) DeleteUser(ctx context.Context, id int64) error
- func (q *Queries) GetImageInfoByDigest(ctx context.Context, arg GetImageInfoByDigestParams) (ImageInfo, error)
- func (q *Queries) GetImageInfoByName(ctx context.Context, arg GetImageInfoByNameParams) (ImageInfo, error)
- func (q *Queries) GetUser(ctx context.Context, loginName string) (User, error)
- func (q *Queries) ListImageByOwner(ctx context.Context, loginName string) ([]ImageInfo, error)
- func (q *Queries) ListUsers(ctx context.Context) ([]User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateImageInfoParams ¶
type CreateImageInfoParams struct {
LoginName string `json:"login_name"`
Name string `json:"name"`
Digest string `json:"digest"`
Created int64 `json:"created"`
Size int64 `json:"size"`
Labels pgtype.JSONB `json:"labels"`
AptPackages pgtype.JSONB `json:"apt_packages"`
PypiCommands pgtype.JSONB `json:"pypi_commands"`
Services pgtype.JSONB `json:"services"`
}
type CreateUserParams ¶
type CreateUserRow ¶ added in v0.0.13
type GetImageInfoByDigestParams ¶ added in v0.0.18
type GetImageInfoByNameParams ¶ added in v0.0.18
type ImageInfo ¶
type ImageInfo struct {
ID int64 `json:"id"`
Name string `json:"name"`
Digest string `json:"digest"`
Created int64 `json:"created"`
Size int64 `json:"size"`
Labels pgtype.JSONB `json:"labels"`
LoginName string `json:"login_name"`
AptPackages pgtype.JSONB `json:"apt_packages"`
PypiCommands pgtype.JSONB `json:"pypi_commands"`
Services pgtype.JSONB `json:"services"`
}
type Querier ¶ added in v0.0.10
type Querier interface {
CreateImageInfo(ctx context.Context, arg CreateImageInfoParams) (ImageInfo, error)
CreateUser(ctx context.Context, arg CreateUserParams) (CreateUserRow, error)
DeleteUser(ctx context.Context, id int64) error
GetImageInfoByDigest(ctx context.Context, arg GetImageInfoByDigestParams) (ImageInfo, error)
GetImageInfoByName(ctx context.Context, arg GetImageInfoByNameParams) (ImageInfo, error)
GetUser(ctx context.Context, loginName string) (User, error)
ListImageByOwner(ctx context.Context, loginName string) ([]ImageInfo, error)
ListUsers(ctx context.Context) ([]User, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateImageInfo ¶
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (CreateUserRow, error)
func (*Queries) DeleteUser ¶ added in v0.0.10
func (*Queries) GetImageInfoByDigest ¶ added in v0.0.18
func (*Queries) GetImageInfoByName ¶ added in v0.0.18
func (*Queries) ListImageByOwner ¶
Click to show internal directories.
Click to hide internal directories.