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) AccountID() string
- func (me *PolicyServiceClient) ClientID() string
- func (me *PolicyServiceClient) ClientSecret() string
- func (me *PolicyServiceClient) Create(v *policies.Policy) (*settings.Stub, error)
- func (me *PolicyServiceClient) Delete(id string) error
- func (me *PolicyServiceClient) Get(id string, v *policies.Policy) error
- func (me *PolicyServiceClient) List() (settings.Stubs, error)
- func (me *PolicyServiceClient) SchemaID() string
- func (me *PolicyServiceClient) Update(id string, user *policies.Policy) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Service ¶
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(clientID string, accountID string, clientSecret string) *PolicyServiceClient
func (*PolicyServiceClient) AccountID ¶
func (me *PolicyServiceClient) AccountID() string
func (*PolicyServiceClient) ClientID ¶
func (me *PolicyServiceClient) ClientID() string
func (*PolicyServiceClient) ClientSecret ¶
func (me *PolicyServiceClient) ClientSecret() string
func (*PolicyServiceClient) Delete ¶
func (me *PolicyServiceClient) Delete(id string) error
func (*PolicyServiceClient) Get ¶
func (me *PolicyServiceClient) Get(id string, v *policies.Policy) error
func (*PolicyServiceClient) SchemaID ¶
func (me *PolicyServiceClient) SchemaID() string
Click to show internal directories.
Click to hide internal directories.