Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootKey = NewKey("/")
RootKey isa Locatable to the root of the FileSystem
Functions ¶
This section is empty.
Types ¶
type ArchiveService ¶
type ArchiveService interface { Get(ctx context.Context, id string) (KeyedResource, error) ResourceWriter ResourceLocator }
type GenericResource ¶
type GenericResource struct {
// contains filtered or unexported fields
}
func NewKeyedGenericResource ¶
func NewKeyedGenericResource(data []byte, format string, key ...string) *GenericResource
NewKeyedGenericResource creates a new GenericResource with the provided data, format and keys
func (*GenericResource) Data ¶
func (g *GenericResource) Data() []byte
func (*GenericResource) Format ¶
func (g *GenericResource) Format() string
func (*GenericResource) Key ¶
func (g *GenericResource) Key() []string
type Getter ¶
type Getter interface {
Get(ctx context.Context, resource Locatable) (resourceWithData *GenericResource, err error)
}
type ImageService ¶
type KeyedResource ¶
type Locatable ¶
func NewKey ¶
NewKey creates a new Locatable only with the provided keys set. Can be used as an identifier
func NewLocator ¶
NewLocator creates a new Locatable only the provided keys and format. Can be used as an identifier
type ResourceLocator ¶
type ResourceReadWriter ¶
type ResourceWriter ¶
type Writer ¶
type Writer interface {
Write(resource KeyedResource) error
}
Click to show internal directories.
Click to hide internal directories.