Documentation ¶
Overview ¶
Copyright © 2023 The Helm Compose 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.
Copyright 2016 The Kubernetes Authors All Rights Reserved ¶
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 © 2023 The Helm Compose 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 ¶
- Variables
- func ConvertJson(obj interface{}) interface{}
- func DebugPrint(format string, a ...interface{})
- func DecodeComposeConfig(data string) (*c.Config, error)
- func EncodeComposeConfig(config *c.Config) (string, error)
- func Execute(command string, args ...string) (string, error)
- func IsDebug() bool
- func MinMax(ints []int) (int, int)
- func NewBool(b bool) *bool
- type ColorPrinter
Constants ¶
This section is empty.
Variables ¶
var PrintColors = true
Functions ¶
func ConvertJson ¶
func ConvertJson(obj interface{}) interface{}
func DebugPrint ¶
func DebugPrint(format string, a ...interface{})
func DecodeComposeConfig ¶
decodeComposeConfig decodes the bytes of data into a compose config. Data must contain a base64 encoded gzipped string of a valid release, otherwise an error is returned.
func EncodeComposeConfig ¶
encodeComposeConfig encodes the config file returning a base64 encoded gzipped string representation, or error.
Types ¶
type ColorPrinter ¶
type ColorPrinter struct {
// contains filtered or unexported fields
}
func NewColorPrinter ¶
func NewColorPrinter(s string) *ColorPrinter
func (ColorPrinter) Printf ¶
func (c ColorPrinter) Printf(format string, a ...any)