Documentation ¶
Index ¶
- type NamespaceFilter
- type PgDB
- func (pgdb *PgDB) AllNamespaces(ctx context.Context, filter database.NamespaceFilter) (ret []model.Namespace, err error)
- func (pgdb *PgDB) Close() error
- func (pgdb *PgDB) CreateNamespace(ctx context.Context, namespace *model.Namespace) error
- func (pgdb *PgDB) CreateProject(ctx context.Context, project *model.Project) error
- func (pgdb *PgDB) DeleteAllUserNamespaces(ctx context.Context, userID string) (deleted []model.Namespace, err error)
- func (pgdb *PgDB) DeleteGroupFromNamespace(ctx context.Context, namespace, groupID string) (deletedPerms []model.Permission, err error)
- func (pgdb *PgDB) DeleteGroupFromProject(ctx context.Context, projectID, groupID string) (deletedPerms []model.Permission, err error)
- func (pgdb *PgDB) DeleteNamespace(ctx context.Context, namespace *model.Namespace) error
- func (pgdb *PgDB) DeleteNamespaceAccess(ctx context.Context, ns model.Namespace, userID string) error
- func (pgdb *PgDB) GroupNamespaces(ctx context.Context, groupID string) (ret []model.NamespaceWithPermissions, err error)
- func (pgdb *PgDB) NamespaceByID(ctx context.Context, userID, id string) (ret model.NamespaceWithPermissions, err error)
- func (pgdb *PgDB) NamespaceByIDForEveryone(ctx context.Context, id string) (ret model.NamespaceWithPermissions, err error)
- func (pgdb *PgDB) NamespaceByLabel(ctx context.Context, userID, label string) (ret model.NamespaceWithPermissions, err error)
- func (pgdb *PgDB) NamespacePermissions(ctx context.Context, ns *model.NamespaceWithPermissions) error
- func (pgdb *PgDB) ProjectByID(ctx context.Context, project string) (p model.Project, err error)
- func (pgdb *PgDB) RenameNamespace(ctx context.Context, namespace *model.Namespace, newLabel string) error
- func (pgdb *PgDB) ResizeNamespace(ctx context.Context, namespace model.Namespace) error
- func (pgdb *PgDB) SetNamespaceAccess(ctx context.Context, ns model.Namespace, ...) error
- func (pgdb *PgDB) SetNamespaceAccesses(ctx context.Context, ns model.Namespace, ...) error
- func (pgdb *PgDB) SetNamespacesAccesses(ctx context.Context, namespaces []model.Namespace, ...) error
- func (pgdb *PgDB) SetUserAccesses(ctx context.Context, userID string, level kubeClientModel.AccessLevel) error
- func (pgdb *PgDB) Transactional(fn func(tx database.DB) error) error
- func (pgdb *PgDB) UserAccesses(ctx context.Context, userID string) ([]database.AccessWithLabel, error)
- func (pgdb *PgDB) UserNamespaces(ctx context.Context, userID string, filter database.NamespaceFilter) (ret []model.NamespaceWithPermissions, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceFilter ¶
type NamespaceFilter database.NamespaceFilter
type PgDB ¶
type PgDB struct {
// contains filtered or unexported fields
}
func (*PgDB) AllNamespaces ¶
func (*PgDB) CreateNamespace ¶
func (*PgDB) CreateProject ¶ added in v1.0.2
func (*PgDB) DeleteAllUserNamespaces ¶
func (*PgDB) DeleteGroupFromNamespace ¶ added in v1.0.2
func (*PgDB) DeleteGroupFromProject ¶ added in v1.0.2
func (*PgDB) DeleteNamespace ¶
func (*PgDB) DeleteNamespaceAccess ¶
func (*PgDB) GroupNamespaces ¶ added in v1.0.2
func (*PgDB) NamespaceByID ¶
func (*PgDB) NamespaceByIDForEveryone ¶ added in v1.0.2
func (*PgDB) NamespaceByLabel ¶
func (*PgDB) NamespacePermissions ¶
func (*PgDB) ProjectByID ¶ added in v1.0.2
func (*PgDB) RenameNamespace ¶
func (*PgDB) ResizeNamespace ¶
func (*PgDB) SetNamespaceAccess ¶
func (pgdb *PgDB) SetNamespaceAccess(ctx context.Context, ns model.Namespace, accessLevel kubeClientModel.AccessLevel, toUserID string) error
func (*PgDB) SetNamespaceAccesses ¶ added in v1.0.2
func (*PgDB) SetNamespacesAccesses ¶ added in v1.0.2
func (*PgDB) SetUserAccesses ¶
func (pgdb *PgDB) SetUserAccesses(ctx context.Context, userID string, level kubeClientModel.AccessLevel) error
func (*PgDB) UserAccesses ¶
func (*PgDB) UserNamespaces ¶
func (pgdb *PgDB) UserNamespaces(ctx context.Context, userID string, filter database.NamespaceFilter) (ret []model.NamespaceWithPermissions, err error)
Click to show internal directories.
Click to hide internal directories.