policies

package
v1.56.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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]

func SplitID

func SplitID(id string) (uuid string, levelType string, levelID string, err error)

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) Create

func (me *PolicyServiceClient) Create(v *policies.Policy) (*api.Stub, error)

func (*PolicyServiceClient) Delete

func (me *PolicyServiceClient) Delete(id string) error

func (*PolicyServiceClient) Get

func (*PolicyServiceClient) List

func (me *PolicyServiceClient) List() (api.Stubs, error)

func (*PolicyServiceClient) SchemaID

func (me *PolicyServiceClient) SchemaID() string

func (*PolicyServiceClient) Update

func (me *PolicyServiceClient) Update(id string, user *policies.Policy) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL