Documentation ¶
Overview ¶
Copyright 2018 jsonnet-bundler authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const Version uint = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonnetFile ¶
type JsonnetFile struct { // List of dependencies Dependencies map[string]deps.Dependency // Symlink files to old location LegacyImports bool }
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 FromV0 ¶ added in v0.3.1
func FromV0(mv0 v0.JsonnetFile) (JsonnetFile, error)
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