Documentation ¶
Overview ¶
Copyright © 2021 Loft Orbital
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.
Copyright © 2021 Loft Orbital ¶
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.
Copyright © 2021 Loft Orbital ¶
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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CUEUnmarshaller ¶
type CUEUnmarshaller struct{}
CUEUnmarshaller can unmarshal CUE content to cue.Value.
type JSONUnmarshaller ¶
type JSONUnmarshaller struct{}
JSONUnmarshaller can unmarshal JSON content to cue.Value.
type Unifier ¶
type Unifier struct {
// contains filtered or unexported fields
}
Unifier represents a multi sources CUE release.
func Load ¶
Load loads instances inside entrypoints, using wd as a working directory. It returns the Unifier containing all the values find.
type Unmarshaller ¶
type Unmarshaller interface {
Unmarshal(data []byte, ctx *cue.Context, options ...cue.BuildOption) (cue.Value, error)
}
Unmarshaller can unmarshal raw bytes to cue.Value.
func UnmarshallerFor ¶
func UnmarshallerFor(ext string) (Unmarshaller, error)
UnmarshallerFor returns the appropriate Unmarshaller for the extension or an error if the extension is not supported.
type YAMLUnmarshaller ¶
type YAMLUnmarshaller struct{}
YAMLUnmarshaller can unmarshal YAML content to cue.Value.