policies

package
v1.32.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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