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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Service

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 DataStub added in v1.48.0

type DataStub struct {
	ID string `json:"id"`
}

type ListEnvResponse added in v1.48.0

type ListEnvResponse struct {
	Data []DataStub `json:"data"`
}

type ListPoliciesResponse added in v1.48.0

type ListPoliciesResponse struct {
	Policies []PolicyStub `json:"policies"`
}

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) 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) Name added in v1.28.0

func (me *PolicyServiceClient) Name() string

func (*PolicyServiceClient) SchemaID

func (me *PolicyServiceClient) SchemaID() string

func (*PolicyServiceClient) Update

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

type PolicyStub added in v1.48.0

type PolicyStub struct {
	UUID        string `json:"uuid"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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