Documentation ¶
Index ¶
- func Service(credentials *settings.Credentials) settings.CRUDService[*policies.Policy]
- func SplitID(id string) (uuid string, levelType string, levelID string, err error)
- type PolicyCreateResponse
- type PolicyServiceClient
- func (me *PolicyServiceClient) Create(ctx context.Context, v *policies.Policy) (*api.Stub, error)
- func (me *PolicyServiceClient) Delete(ctx context.Context, id string) error
- func (me *PolicyServiceClient) Get(ctx context.Context, id string, v *policies.Policy) error
- func (me *PolicyServiceClient) List(ctx context.Context) (api.Stubs, error)
- func (me *PolicyServiceClient) SchemaID() string
- func (me *PolicyServiceClient) Update(ctx context.Context, id string, user *policies.Policy) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Service ¶ added in v1.50.0
func Service(credentials *settings.Credentials) settings.CRUDService[*policies.Policy]
Types ¶
type PolicyCreateResponse ¶
type PolicyCreateResponse struct {
UUID string `json:"uuid"`
}
type PolicyServiceClient ¶
type PolicyServiceClient struct {
// contains filtered or unexported fields
}
func NewPolicyService ¶
func NewPolicyService(baseURL string, apiToken string) *PolicyServiceClient
func (*PolicyServiceClient) Delete ¶
func (me *PolicyServiceClient) Delete(ctx context.Context, id string) error
func (*PolicyServiceClient) SchemaID ¶
func (me *PolicyServiceClient) SchemaID() string
Click to show internal directories.
Click to hide internal directories.