Documentation ¶
Index ¶
- Constants
- func Service(credentials *settings.Credentials) settings.CRUDService[*bindings.PolicyBinding]
- type BindingServiceClient
- 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) 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) Update(ctx context.Context, id string, bindings *bindings.PolicyBinding) error
- type PolicyCreateResponse
Constants ¶
View Source
const SchemaID = "accounts:policy-bindings"
Variables ¶
This section is empty.
Functions ¶
func Service ¶ added in v1.52.0
func Service(credentials *settings.Credentials) settings.CRUDService[*bindings.PolicyBinding]
Types ¶
type BindingServiceClient ¶
type BindingServiceClient struct {
// contains filtered or unexported fields
}
func NewPolicyService ¶
func NewPolicyService(baseURL string, apiToken string) *BindingServiceClient
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) Get ¶
func (me *BindingServiceClient) Get(ctx context.Context, id string, v *bindings.PolicyBinding) error
func (*BindingServiceClient) SchemaID ¶
func (me *BindingServiceClient) SchemaID() string
func (*BindingServiceClient) Update ¶
func (me *BindingServiceClient) Update(ctx context.Context, id string, bindings *bindings.PolicyBinding) error
type PolicyCreateResponse ¶
type PolicyCreateResponse struct {
UUID string `json:"uuid"`
}
Click to show internal directories.
Click to hide internal directories.