Documentation
¶
Index ¶
- Variables
- type AuthKey
- type OrganisationPolicy
- type OrganisationPolicyOpts
- type ProjectPolicy
- func (pp *ProjectPolicy) Create(ctx context.Context, org *datastore.Organisation) error
- func (pp *ProjectPolicy) Delete(ctx context.Context, project *datastore.Project) error
- func (pp *ProjectPolicy) Get(ctx context.Context, project *datastore.Project) error
- func (pp *ProjectPolicy) Update(ctx context.Context, project *datastore.Project) error
- type ProjectPolicyOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotAllowed = errors.New("unauthorized to process request")
ErrNotAllowed is returned when request is not permitted.
Functions ¶
This section is empty.
Types ¶
type OrganisationPolicy ¶
type OrganisationPolicy struct {
// contains filtered or unexported fields
}
func NewOrganisationPolicy ¶
func NewOrganisationPolicy(opts *OrganisationPolicyOpts) *OrganisationPolicy
func (*OrganisationPolicy) Delete ¶
func (op *OrganisationPolicy) Delete(ctx context.Context, org *datastore.Organisation) error
func (*OrganisationPolicy) Get ¶
func (op *OrganisationPolicy) Get(ctx context.Context, org *datastore.Organisation) error
func (*OrganisationPolicy) Update ¶
func (op *OrganisationPolicy) Update(ctx context.Context, org *datastore.Organisation) error
type OrganisationPolicyOpts ¶
type OrganisationPolicyOpts struct {
OrganisationMemberRepo datastore.OrganisationMemberRepository
}
type ProjectPolicy ¶
type ProjectPolicy struct {
// contains filtered or unexported fields
}
func NewProjectPolicy ¶
func NewProjectPolicy(opts *ProjectPolicyOpts) *ProjectPolicy
func (*ProjectPolicy) Create ¶
func (pp *ProjectPolicy) Create(ctx context.Context, org *datastore.Organisation) error
type ProjectPolicyOpts ¶
type ProjectPolicyOpts struct {
OrganisationRepo datastore.OrganisationRepository
OrganisationMemberRepo datastore.OrganisationMemberRepository
}
Click to show internal directories.
Click to hide internal directories.