Documentation ¶
Index ¶
Constants ¶
View Source
const Version = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type JsonnetFile ¶
type JsonnetFile struct {
Dependencies map[string]Dependency
}
JsonnetFile is the structure of a `.json` file describing a set of jsonnet dependencies. It is used for both, the jsonnetFile and the lockFile.
func New ¶
func New() JsonnetFile
New returns a new JsonnetFile with the dependencies map initialized
func (JsonnetFile) MarshalJSON ¶
func (jf JsonnetFile) MarshalJSON() ([]byte, error)
MarshalJSON serializes a JsonnetFile into json of the format of a `jsonFile`
func (*JsonnetFile) UnmarshalJSON ¶
func (jf *JsonnetFile) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals a `jsonFile`'s json into a JsonnetFile
type LocalSource ¶
type LocalSource struct {
Directory string `json:"directory"`
}
type Source ¶
type Source struct { GitSource *GitSource `json:"git,omitempty"` LocalSource *LocalSource `json:"local,omitempty"` }
Click to show internal directories.
Click to hide internal directories.