Documentation
¶
Overview ¶
Based on Minikube (https://github.com/kubernetes/minikube), which is licensed under The Apache License, Version 2.0:
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.
Index ¶
- Variables
- func Execute()
- func FormatError(err error) (string, error)
- func GetKubeConfigPath() string
- func GetPort() (string, error)
- func KillMountProcess() error
- func MarshallError(errMsg, service, version string) ([]byte, error)
- func MaybeReportErrorAndExit(errToReport error)
- func PromptUserForAccept(r io.Reader) bool
- func ReportError(err error, url string) error
- func UploadError(b []byte, url string) error
- type EnvNoProxyGetter
- type LibmachineShellDetector
- type LookPath
- type Message
- type NoProxyGetter
- type ServiceContext
- type ShellConfig
- type ShellDetector
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "sbox", Short: "Sandbox is a tool that runs Docker-based workflows.", Long: `Sandbox is a tool that runs Docker-based workflows. For help, visit https://stack.foundation/docs`, PersistentPreRun: func(cmd *cobra.Command, args []string) { if debug { log.SetDebug(true) } if len(originalCommand) > 0 { cmd.Use = originalCommand } for _, path := range dirs { if err := os.MkdirAll(path, 0777); err != nil { } } }, }
Functions ¶
func FormatError ¶
func GetKubeConfigPath ¶
func GetKubeConfigPath() string
func KillMountProcess ¶
func KillMountProcess() error
func MarshallError ¶
func MaybeReportErrorAndExit ¶
func MaybeReportErrorAndExit(errToReport error)
func PromptUserForAccept ¶
func ReportError ¶
func UploadError ¶
Types ¶
type EnvNoProxyGetter ¶
type EnvNoProxyGetter struct{}
func (EnvNoProxyGetter) GetNoProxyVar ¶
func (EnvNoProxyGetter) GetNoProxyVar() (string, string)
type LibmachineShellDetector ¶
type LibmachineShellDetector struct{}
type Message ¶
type Message struct {
Message string `json:"message"`
ServiceContext `json:"serviceContext"`
}
type NoProxyGetter ¶
type ServiceContext ¶
type ShellConfig ¶
type ShellDetector ¶
Click to show internal directories.
Click to hide internal directories.