Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { // Count returns the total count of policies according to the query Count(ctx context.Context, query *q.Query) (total int64, err error) // Create the policy schema Create(ctx context.Context, schema *policy.Schema) (id int64, err error) // Update the policy schema, Only the properties specified by "props" will be updated if it is set Update(ctx context.Context, schema *policy.Schema, props ...string) (err error) // Get the policy schema by id Get(ctx context.Context, id int64) (schema *policy.Schema, err error) // Get the policy schema by name GetByName(ctx context.Context, projectID int64, name string) (schema *policy.Schema, err error) // Delete the policy schema by id Delete(ctx context.Context, id int64) (err error) // List policy schemas by query List(ctx context.Context, query *q.Query) (schemas []*policy.Schema, err error) }
DAO is the data access object for policy.
Click to show internal directories.
Click to hide internal directories.