client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(apiURL string) (*Client, error)

NewClient ...

func (*Client) CreateModel

func (c *Client) CreateModel(ctx context.Context, id, spec string) (*AuthorizationModel, error)

CreateModel ...

func (*Client) CreateStore

func (c *Client) CreateStore(ctx context.Context, name string) (*Store, error)

CreateStore ...

func (*Client) DeleteAuthorizationModel

func (c *Client) DeleteAuthorizationModel(ctx context.Context, id string) error

DeleteAuthorizationModel ...

func (*Client) DeleteStore

func (c *Client) DeleteStore(ctx context.Context, id string) error

DeleteStore ...

func (*Client) GetAuthorizationModel

func (c *Client) GetAuthorizationModel(ctx context.Context, store, model string) (*AuthorizationModel, error)

GetAuthorizationModel ...

func (*Client) GetStore

func (c *Client) GetStore(ctx context.Context, id string) (*Store, error)

GetStore ...

func (*Client) NeedsUpdate

func (c *Client) NeedsUpdate(ctx context.Context, store, model, update string) (bool, error)

NeedsUpdate ...

func (*Client) UpdateModel

func (c *Client) UpdateModel(ctx context.Context, id, spec string) (*AuthorizationModel, error)

UpdateModel ...

type Store

type Store struct {
	// ID ...
	ID string `json:"id,omitempty"`
	// Name ...
	Name string `json:"name,omitempty"`
}

Store ...

Jump to

Keyboard shortcuts

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