Documentation ¶
Index ¶
- type Client
- type Local
- func (local Local) DeleteResource(ctx context.Context, id string) error
- func (local Local) ReadDataSource(ctx context.Context, id string) (*data.Resource, error)
- func (local Local) ReadResource(ctx context.Context, id string) (*data.Resource, error)
- func (local Local) UpdateResource(ctx context.Context, value *data.Resource) error
- func (local Local) WriteResource(ctx context.Context, value *data.Resource) error
- type State
- func (state State) DeleteResource(ctx context.Context, id string) error
- func (state State) ReadDataSource(ctx context.Context, id string) (*data.Resource, error)
- func (state State) ReadResource(ctx context.Context, id string) (*data.Resource, error)
- func (state State) UpdateResource(ctx context.Context, value *data.Resource) error
- func (state State) WriteResource(ctx context.Context, value *data.Resource) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ReadResource(ctx context.Context, id string) (*data.Resource, error) WriteResource(ctx context.Context, value *data.Resource) error UpdateResource(ctx context.Context, value *data.Resource) error DeleteResource(ctx context.Context, id string) error ReadDataSource(ctx context.Context, id string) (*data.Resource, error) }
type Local ¶
func (Local) DeleteResource ¶
func (Local) ReadDataSource ¶
func (Local) ReadResource ¶
func (Local) UpdateResource ¶
type State ¶
type State struct {
DataDirectory string
}
func (State) DeleteResource ¶
func (State) ReadDataSource ¶
func (State) ReadResource ¶
func (State) UpdateResource ¶
Click to show internal directories.
Click to hide internal directories.