Documentation
¶
Overview ¶
Copyright © 2019 Portworx
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 2018 Portworx ¶
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 CommaStringToStringMap(s string) (map[string]string, error)
- func Eprintf(format string, args ...interface{})
- func ListContains(list []string, s string) bool
- func ListHaveMatch(list, match []string) bool
- func NewTabby() *tabby.Tabby
- func PrintJson(obj interface{})
- func PrintPxErrorMessagef(err error, format string, args ...string)
- func PrintYaml(obj interface{})
- func Printf(format string, args ...interface{})
- func PxError(err error) error
- func PxErrorMessage(err error, msg string) error
- func PxErrorMessagef(err error, format string, args ...string) error
- func StringMapToCommaString(labels map[string]string) string
- func WaitFor(timeout time.Duration, period time.Duration, f func() (bool, error)) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CommaStringToStringMap ¶
CommaStringToStringMap returns a string map composed of the k=v comma separated values in the string
func Eprintf ¶
func Eprintf(format string, args ...interface{})
Eprintf prints the errors to the output buffer Stderr. It is equal to fmt.Fprintf(util.Stderr, format, args)
func ListContains ¶
ListContains returns true when string s is found in the list
func ListHaveMatch ¶
ListsHaveMatch returns true when any one string is found in both lists
func NewTabby ¶
NewTabby is used to return a tabbing object set to the value of Stdout in the util package
func PrintPxErrorMessagef ¶
PrintPxErrorMessagef prints the Portworx error message to Stderr
func Printf ¶
func Printf(format string, args ...interface{})
Printf is just like fmt.Printf except that it send the output to Stdout. It is equal to fmt.Fprintf(util.Stdout, format, args)
func PxErrorMessage ¶
PxErrorMessage returns an error composed of the gRPC error status message and the message provided.
func PxErrorMessagef ¶
PxErrorMessagef is like PxErrorMessage, but also adds formatted string support
func StringMapToCommaString ¶
StringMapToCommaString returns a comma separated k=v as a single string
Types ¶
This section is empty.