Documentation
¶
Index ¶
- Constants
- type AuthorizationModel
- type Client
- func (c *Client) CreateModel(ctx context.Context, id, spec string) (*AuthorizationModel, error)
- func (c *Client) CreateStore(ctx context.Context, name string) (*Store, error)
- func (c *Client) DeleteAuthorizationModel(ctx context.Context, id string) error
- func (c *Client) DeleteStore(ctx context.Context, id string) error
- func (c *Client) GetAuthorizationModel(ctx context.Context, store, model string) (*AuthorizationModel, error)
- func (c *Client) GetStore(ctx context.Context, id string) (*Store, error)
- func (c *Client) NeedsUpdate(ctx context.Context, store, model, update string) (bool, error)
- func (c *Client) UpdateModel(ctx context.Context, id, spec string) (*AuthorizationModel, error)
- type Store
Constants ¶
View Source
const LocalApiURL = "http://host.docker.internal:8080"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationModel ¶
type AuthorizationModel struct {
ID string `json:"id,omitempty"`
Spec string `json:"spec,omitempty"`
}
AuthorizationModel ...
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client ...
func (*Client) CreateModel ¶
CreateModel ...
func (*Client) CreateStore ¶
CreateStore ...
func (*Client) DeleteAuthorizationModel ¶
DeleteAuthorizationModel ...
func (*Client) DeleteStore ¶
DeleteStore ...
func (*Client) GetAuthorizationModel ¶
func (c *Client) GetAuthorizationModel(ctx context.Context, store, model string) (*AuthorizationModel, error)
GetAuthorizationModel ...
func (*Client) NeedsUpdate ¶
NeedsUpdate ...
func (*Client) UpdateModel ¶
UpdateModel ...
Click to show internal directories.
Click to hide internal directories.