Documentation ¶
Index ¶
- Constants
- Variables
- func BuildBundle(p base.FileProducer, opts ...ManifestOption) (base.Bundle, error)
- func ReadBundle(p base.FileProducer) (base.Bundle, error)
- type Bundle
- func (b *Bundle) BundleFormatVersion() string
- func (b *Bundle) Document() map[string]interface{}
- func (b *Bundle) Manifest() interface{}
- func (b *Bundle) Modules() map[string]*ast.Module
- func (b *Bundle) Provider() data.Provider
- func (b *Bundle) SourceInfo() base.SourceInfo
- func (b *Bundle) Validate() error
- type Manifest
- type ManifestOption
- type VCSMetadata
Constants ¶
View Source
const VERSION = "v1"
Variables ¶
View Source
var ErrInvalidBundle = errors.New("invalid bundle")
View Source
var ErrInvalidManifest = errors.New("invalid manifest")
Functions ¶
func BuildBundle ¶
func BuildBundle(p base.FileProducer, opts ...ManifestOption) (base.Bundle, error)
func ReadBundle ¶
func ReadBundle(p base.FileProducer) (base.Bundle, error)
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
func (*Bundle) BundleFormatVersion ¶
func (*Bundle) SourceInfo ¶
func (b *Bundle) SourceInfo() base.SourceInfo
type Manifest ¶
type ManifestOption ¶
type ManifestOption func(m *Manifest)
func WithRevision ¶
func WithRevision(r string) ManifestOption
func WithVCSType ¶
func WithVCSType(t string) ManifestOption
func WithVCSURI ¶
func WithVCSURI(u string) ManifestOption
type VCSMetadata ¶
Click to show internal directories.
Click to hide internal directories.