Versions in this module Expand all Collapse all v0 v0.1.0 Feb 29, 2024 Changes in this version + type CheckRequest struct + Source S + Version *V + type Checker interface + Check func(CheckRequest[SourceType, VersionType]) ([]VersionType, error) + type GetRequest struct + Params P + Source S + Version V + type Getter interface + Get func(baseDir string, request GetRequest[SourceType, VersionType, ParamsType]) (Response[VersionType], error) + type MetadataField struct + Name string + Value string + type PutRequest struct + Params P + Source S + type Putter interface + Put func(baseDir string, request PutRequest[SourceType, ParamsType]) (Response[VersionType], error) + type ResourceType struct + func NewResourceType[S any, V any, G any, P any](impl any, options ...ResourceTypeOption[S, V, G, P]) ResourceType[S, V, G, P] + func (r ResourceType[SourceType, VersionType, GetParamsType, PutParamsType]) Run(args ...string) error + type ResourceTypeOption func(r *ResourceType[SourceType, VersionType, GetParamsType, PutParamsType]) + func WithStdin[S any, V any, G any, P any](stdin io.Reader) ResourceTypeOption[S, V, G, P] + func WithStdout[S any, V any, G any, P any](stdout io.Writer) ResourceTypeOption[S, V, G, P] + type Response struct + Metadata []MetadataField + Version V