Documentation ¶
Index ¶
- func NewRepository(namespace string) error
- type CueBlox
- type DisplayVersion
- type Manifest
- type Meta
- type Repository
- func (r *Repository) Create() error
- func (r *Repository) CreateManifest() error
- func (r *Repository) GetManifest() (Manifest, error)
- func (r *Repository) LoadVersions() error
- func (r *Repository) NewVersion() (string, error)
- func (r *Repository) SchemaList() []string
- func (r *Repository) SchemaVersions() []string
- type Schema
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
Types ¶
type DisplayVersion ¶
type Manifest ¶
type Manifest struct { Namespace string `json:"namespace"` Versions []string `json:"versions"` Schemas map[string]*DisplayVersion `json:"version_schemas"` }
type Repository ¶
A repository is a combination of metadata and files in a specific folder structure
func Open ¶
func Open() (*Repository, error)
func (*Repository) Create ¶
func (r *Repository) Create() error
func (*Repository) CreateManifest ¶
func (r *Repository) CreateManifest() error
CreateManifest writes a JSON encoded file with the provided namespace to a repository's root directory
func (*Repository) GetManifest ¶
func (r *Repository) GetManifest() (Manifest, error)
func (*Repository) LoadVersions ¶
func (r *Repository) LoadVersions() error
func (*Repository) NewVersion ¶
func (r *Repository) NewVersion() (string, error)
func (*Repository) SchemaList ¶
func (r *Repository) SchemaList() []string
func (*Repository) SchemaVersions ¶
func (r *Repository) SchemaVersions() []string
Click to show internal directories.
Click to hide internal directories.