Documentation ¶
Index ¶
- func Service(credentials *settings.Credentials) settings.CRUDService[*bindings.PolicyBinding]
- type BindingServiceClient
- func (me *BindingServiceClient) AccountID() string
- func (me *BindingServiceClient) ClientID() string
- func (me *BindingServiceClient) ClientSecret() string
- func (me *BindingServiceClient) Create(ctx context.Context, v *bindings.PolicyBinding) (*api.Stub, error)
- func (me *BindingServiceClient) Delete(ctx context.Context, id string) error
- func (me *BindingServiceClient) EndpointURL() string
- func (me *BindingServiceClient) FetchAccountBindings(ctx context.Context) chan *api.Stub
- func (me *BindingServiceClient) FetchEnvironmentBindings(ctx context.Context) chan *api.Stub
- func (me *BindingServiceClient) Get(ctx context.Context, id string, v *bindings.PolicyBinding) error
- func (me *BindingServiceClient) List(ctx context.Context) (api.Stubs, error)
- func (me *BindingServiceClient) SchemaID() string
- func (me *BindingServiceClient) TokenURL() string
- func (me *BindingServiceClient) Update(ctx context.Context, id string, v *bindings.PolicyBinding) error
- type BindingsResponse
- type DataStub
- type ListEnvResponse
- type ListPolicyBindingsResponse
- type PolicyBindingStub
- type PolicyCreateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Service ¶
func Service(credentials *settings.Credentials) settings.CRUDService[*bindings.PolicyBinding]
Types ¶
type BindingServiceClient ¶
type BindingServiceClient struct {
// contains filtered or unexported fields
}
func NewPolicyService ¶
func (*BindingServiceClient) AccountID ¶
func (me *BindingServiceClient) AccountID() string
func (*BindingServiceClient) ClientID ¶
func (me *BindingServiceClient) ClientID() string
func (*BindingServiceClient) ClientSecret ¶
func (me *BindingServiceClient) ClientSecret() string
func (*BindingServiceClient) Create ¶
func (me *BindingServiceClient) Create(ctx context.Context, v *bindings.PolicyBinding) (*api.Stub, error)
func (*BindingServiceClient) Delete ¶
func (me *BindingServiceClient) Delete(ctx context.Context, id string) error
func (*BindingServiceClient) EndpointURL ¶ added in v1.67.0
func (me *BindingServiceClient) EndpointURL() string
func (*BindingServiceClient) FetchAccountBindings ¶ added in v1.57.0
func (me *BindingServiceClient) FetchAccountBindings(ctx context.Context) chan *api.Stub
func (*BindingServiceClient) FetchEnvironmentBindings ¶ added in v1.57.0
func (me *BindingServiceClient) FetchEnvironmentBindings(ctx context.Context) chan *api.Stub
func (*BindingServiceClient) Get ¶
func (me *BindingServiceClient) Get(ctx context.Context, id string, v *bindings.PolicyBinding) error
func (*BindingServiceClient) SchemaID ¶
func (me *BindingServiceClient) SchemaID() string
func (*BindingServiceClient) TokenURL ¶ added in v1.67.0
func (me *BindingServiceClient) TokenURL() string
func (*BindingServiceClient) Update ¶
func (me *BindingServiceClient) Update(ctx context.Context, id string, v *bindings.PolicyBinding) error
type BindingsResponse ¶ added in v1.57.0
type BindingsResponse struct { LevelType string `json:"levelType"` LevelID string `json:"levelId"` PolicyBindings []struct { PolicyUUID string `json:"policyUuid"` GroupUUIDs []string `json:"groups"` Parameters map[string]string `json:"parameters"` Metadata map[string]string `json:"metadata"` } `json:"policyBindings"` }
type ListEnvResponse ¶
type ListEnvResponse struct {
Data []DataStub `json:"data"`
}
type ListPolicyBindingsResponse ¶
type ListPolicyBindingsResponse struct {
PolicyBindings []PolicyBindingStub `json:"policyBindings"`
}
type PolicyBindingStub ¶
type PolicyBindingStub struct {
Groups []string `json:"groups"`
}
type PolicyCreateResponse ¶
type PolicyCreateResponse struct {
UUID string `json:"uuid"`
}
Click to show internal directories.
Click to hide internal directories.