Documentation ¶
Index ¶
- func SplitID(id string) (uuid string, levelType string, levelID string, err error)
- type PolicyCreateResponse
- type PolicyServiceClient
- 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 ¶
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(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.