Documentation
¶
Index ¶
- Variables
- func GetReferenceURLForAccessPolicy(id uuid.UUID, v int) string
- func GetReferenceURLForAccessor(id uuid.UUID, v int) string
- func GetReferenceURLForMutator(id uuid.UUID, v int) string
- func GetReferenceURLForTransformer(id uuid.UUID, v int) string
- func StripTokenizerBase(path string) string
- func StripUserstoreBase(path string) string
- type RetentionPath
- func (rp *RetentionPath) Build() string
- func (rp *RetentionPath) ForColumn(columnID uuid.UUID) *RetentionPath
- func (rp *RetentionPath) ForDuration(durationID uuid.UUID) *RetentionPath
- func (rp *RetentionPath) ForPurpose(purposeID uuid.UUID) *RetentionPath
- func (rp *RetentionPath) ForTenant() *RetentionPath
Constants ¶
This section is empty.
Variables ¶
var ( IDPBasePath = "/authn" // TODO change this // TODO: finish converting IDP path handling to use these CreateUser = fmt.Sprintf("%s/users", IDPBasePath) AddAuthnToUser = fmt.Sprintf("%s/addauthntouser", IDPBasePath) UserStoreBasePath = "/userstore" BaseConfigPath = fmt.Sprintf("%s/config", UserStoreBasePath) BaseConfigColumnsPath = fmt.Sprintf("%s/columns", BaseConfigPath) CreateColumnPath = BaseConfigColumnsPath DeleteColumnPath = singleConfigColumnPath GetColumnPath = singleConfigColumnPath ListColumnsPath = BaseConfigColumnsPath UpdateColumnPath = singleConfigColumnPath BaseConfigAccessorPath = fmt.Sprintf("%s/accessors", BaseConfigPath) CreateAccessorPath = BaseConfigAccessorPath DeleteAccessorPath = singleConfigAccessorPath GetAccessorPath = singleConfigAccessorPath GetAccessorByVersionPath = versionedSingleConfigAccessorPath ListAccessorsPath = BaseConfigAccessorPath UpdateAccessorPath = singleConfigAccessorPath BaseAccessorPath = fmt.Sprintf("%s/accessors", BaseAPIPath) ExecuteAccessorPath = BaseAccessorPath BaseConfigMutatorPath = fmt.Sprintf("%s/mutators", BaseConfigPath) CreateMutatorPath = BaseConfigMutatorPath DeleteMutatorPath = singleConfigMutatorPath GetMutatorPath = singleConfigMutatorPath GetMutatorByVersionPath = versionedSingleConfigMutatorPath ListMutatorsPath = BaseConfigMutatorPath UpdateMutatorPath = singleConfigMutatorPath BaseMutatorPath = fmt.Sprintf("%s/mutators", BaseAPIPath) ExecuteMutatorPath = BaseMutatorPath BaseConfigPurposePath = fmt.Sprintf("%s/purposes", BaseConfigPath) CreatePurposePath = BaseConfigPurposePath ListPurposesPath = BaseConfigPurposePath GetPurposePath = singleConfigPurposePath DeletePurposePath = singleConfigPurposePath UpdatePurposePath = singleConfigPurposePath GetConsentedPurposesForUserPath = fmt.Sprintf("%s/consentedpurposes", UserStoreBasePath) BaseAPIPath = fmt.Sprintf("%s/api", UserStoreBasePath) TokenizerBasePath = "/tokenizer" BaseTokenPath = fmt.Sprintf("%s/tokens", TokenizerBasePath) CreateToken = BaseTokenPath DeleteToken = BaseTokenPath ResolveToken = fmt.Sprintf("%s/actions/resolve", BaseTokenPath) InspectToken = fmt.Sprintf("%s/actions/inspect", BaseTokenPath) LookupToken = fmt.Sprintf("%s/actions/lookup", BaseTokenPath) LookupOrCreateTokens = fmt.Sprintf("%s/actions/lookuporcreate", BaseTokenPath) BasePolicyPath = fmt.Sprintf("%s/policies", TokenizerBasePath) BaseAccessPolicyPath = fmt.Sprintf("%s/access", BasePolicyPath) ListAccessPolicies = BaseAccessPolicyPath GetAccessPolicy = func(id uuid.UUID) string { return fmt.Sprintf("%s/%s", BaseAccessPolicyPath, id) } GetAccessPolicyByName = func(name string) string { return fmt.Sprintf("%s?name=%s", BaseAccessPolicyPath, name) } GetAccessPolicyByVersion = func(id uuid.UUID, version int) string { return fmt.Sprintf("%s/%s?policy_version=%d", BaseAccessPolicyPath, id, version) } GetAccessPolicyByNameAndVersion = func(name string, version int) string { return fmt.Sprintf("%s?name=%s&policy_version=%d", BaseAccessPolicyPath, name, version) } CreateAccessPolicy = BaseAccessPolicyPath UpdateAccessPolicy = func(id uuid.UUID) string { return fmt.Sprintf("%s/%s", BaseAccessPolicyPath, id) } DeleteAccessPolicy = func(id uuid.UUID, version int) string { return fmt.Sprintf("%s/%s?policy_version=%d", BaseAccessPolicyPath, id, version) } TestAccessPolicy = fmt.Sprintf("%s/actions/test", BaseAccessPolicyPath) ExecuteAccessPolicy = fmt.Sprintf("%s/actions/execute", BaseAccessPolicyPath) BaseAccessPolicyTemplatePath = fmt.Sprintf("%s/accesstemplate", BasePolicyPath) ListAccessPolicyTemplates = BaseAccessPolicyTemplatePath GetAccessPolicyTemplate = func(id uuid.UUID) string { return fmt.Sprintf("%s/%s", BaseAccessPolicyTemplatePath, id) } GetAccessPolicyTemplateByName = func(name string) string { return fmt.Sprintf("%s?name=%s", BaseAccessPolicyTemplatePath, name) } GetAccessPolicyTemplateByVersion = func(id uuid.UUID, version int) string { return fmt.Sprintf("%s/%s?template_version=%d", BaseAccessPolicyTemplatePath, id, version) } GetAccessPolicyTemplateByNameAndVersion = func(name string, version int) string { return fmt.Sprintf("%s?name=%s&template_version=%d", BaseAccessPolicyTemplatePath, name, version) } CreateAccessPolicyTemplate = BaseAccessPolicyTemplatePath UpdateAccessPolicyTemplate = func(id uuid.UUID) string { return fmt.Sprintf("%s/%s", BaseAccessPolicyTemplatePath, id) } DeleteAccessPolicyTemplate = func(id uuid.UUID, version int) string { return fmt.Sprintf("%s/%s?template_version=%d", BaseAccessPolicyTemplatePath, id, version) } BaseTransformerPath = fmt.Sprintf("%s/transformation", BasePolicyPath) ListTransformers = BaseTransformerPath GetTransformer = func(id uuid.UUID) string { return fmt.Sprintf("%s/%s", BaseTransformerPath, id) } GetTransformerByName = func(name string) string { return fmt.Sprintf("%s?name=%s", BaseTransformerPath, name) } CreateTransformer = BaseTransformerPath DeleteTransformer = func(id uuid.UUID) string { return fmt.Sprintf("%s/%s", BaseTransformerPath, id) } TestTransformer = fmt.Sprintf("%s/actions/test", BaseTransformerPath) ExecuteTransformer = fmt.Sprintf("%s/actions/execute", BaseTransformerPath) )
Path constants for the userstore
Functions ¶
func GetReferenceURLForAccessPolicy ¶ added in v0.6.4
GetReferenceURLForAccessPolicy return URL pointing at a particular access policy object
func GetReferenceURLForAccessor ¶ added in v0.4.0
GetReferenceURLForAccessor return URL pointing at a particular access policy object
func GetReferenceURLForMutator ¶ added in v0.4.0
GetReferenceURLForMutator return URL pointing at a particular transformer object
func GetReferenceURLForTransformer ¶ added in v0.6.4
GetReferenceURLForTransformer return URL pointing at a particular transformer object
func StripTokenizerBase ¶ added in v0.6.4
StripTokenizerBase makes the URLs functional for handler setup
func StripUserstoreBase ¶ added in v0.6.4
StripUserstoreBase makes the URLs functional for handler setup
Types ¶
type RetentionPath ¶ added in v0.7.2
type RetentionPath struct {
// contains filtered or unexported fields
}
RetentionPath manages building a path for interacting with retention durations
func NewRetentionPath ¶ added in v0.7.2
func NewRetentionPath(isLive bool) *RetentionPath
NewRetentionPath creates a new retention path
func (*RetentionPath) Build ¶ added in v0.7.2
func (rp *RetentionPath) Build() string
Build returns a path string for the retention path
func (*RetentionPath) ForColumn ¶ added in v0.7.2
func (rp *RetentionPath) ForColumn(columnID uuid.UUID) *RetentionPath
ForColumn configures the retention path to be for a column
func (*RetentionPath) ForDuration ¶ added in v0.7.2
func (rp *RetentionPath) ForDuration(durationID uuid.UUID) *RetentionPath
ForDuration configures the retention path to be for a duration ID
func (*RetentionPath) ForPurpose ¶ added in v0.7.2
func (rp *RetentionPath) ForPurpose(purposeID uuid.UUID) *RetentionPath
ForPurpose configures the retention path to be for a purpose
func (*RetentionPath) ForTenant ¶ added in v0.7.2
func (rp *RetentionPath) ForTenant() *RetentionPath
ForTenant configures the retention path to be for a tenant