common

package
v0.0.0-...-23f3cf7 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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

View Source
const (
	PropDisplayCert       = "client cert"
	PropDisplayKey        = "Client key"
	PropDisplayAuth       = "whisk auth"
	PropDisplayAPIHost    = "whisk API host"
	PropDisplayAPIVersion = "whisk API version"
	PropDisplayNamespace  = "whisk namespace"
	PropDisplayCLIVersion = "whisk CLI version"
	PropDisplayAPIBuild   = "whisk API build"
	PropDisplayAPIBuildNo = "whisk API build number"
)

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(filePath string)

func DeleteFile

func DeleteFile(filePath string)

func GetBinPath

func GetBinPath() string

func GetRepoPath

func GetRepoPath() string

func GetTestActionFilename

func GetTestActionFilename(fileName string) string

func ReadFile

func ReadFile(filePath string) string

func RemoveRedundantSpaces

func RemoveRedundantSpaces(in string) (out string)

func WriteFile

func WriteFile(filePath string, lines []string)

Types

type InvalidArg

type InvalidArg struct {
	Cmd []string
	Err string
}

type Wsk

type Wsk struct {
	Path     string
	Arg      []string
	Dir      string
	Wskprops *whisk.Wskprops
}

func NewWsk

func NewWsk() *Wsk

func NewWskWithPath

func NewWskWithPath(path string) *Wsk

func (*Wsk) Exists

func (wsk *Wsk) Exists() bool

func (*Wsk) ListNamespaces

func (wsk *Wsk) ListNamespaces() ([]byte, error)

func (*Wsk) RunCommand

func (wsk *Wsk) RunCommand(s ...string) ([]byte, error)

Jump to

Keyboard shortcuts

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