util

package
v0.0.0-...-7cfedb5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

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.

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.

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

View Source
var PrintColors = true

Functions

func ConvertJson

func ConvertJson(obj interface{}) interface{}

func DebugPrint

func DebugPrint(format string, a ...interface{})

func DecodeComposeConfig

func DecodeComposeConfig(data string) (*c.Config, error)

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

func EncodeComposeConfig(config *c.Config) (string, error)

encodeComposeConfig encodes the config file returning a base64 encoded gzipped string representation, or error.

func Execute

func Execute(command string, args ...string) (string, error)

func IsDebug

func IsDebug() bool

func MinMax

func MinMax(ints []int) (int, int)

func NewBool

func NewBool(b bool) *bool

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL