зеркало из https://github.com/docker/compose-cli.git
gofmt files with go 1.19
Prepare for future updates of Go, which may result in some changes in formatting in GoDoc comments. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Родитель
8839c52fea
Коммит
fb71f3bc8a
|
@ -33,7 +33,7 @@ import (
|
|||
"golang.org/x/oauth2"
|
||||
)
|
||||
|
||||
//go login process, derived from code sample provided by MS at https://github.com/devigned/go-az-cli-stuff
|
||||
// go login process, derived from code sample provided by MS at https://github.com/devigned/go-az-cli-stuff
|
||||
const (
|
||||
clientID = "04b07795-8ddb-461a-bbee-02f9e1bf7b46" // Azure CLI client id
|
||||
)
|
||||
|
|
|
@ -285,7 +285,7 @@ func (kc KubeClient) WaitForPodState(ctx context.Context, opts WaitForStatusOpti
|
|||
return nil
|
||||
}
|
||||
|
||||
//MapPortsToLocalhost runs a port-forwarder daemon process
|
||||
// MapPortsToLocalhost runs a port-forwarder daemon process
|
||||
func (kc KubeClient) MapPortsToLocalhost(ctx context.Context, opts PortMappingOptions) error {
|
||||
stopChannel := make(chan struct{}, 1)
|
||||
readyChannel := make(chan struct{})
|
||||
|
|
|
@ -37,7 +37,7 @@ import (
|
|||
"k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
||||
//ConvertToChart convert Kube objects to helm chart
|
||||
// ConvertToChart convert Kube objects to helm chart
|
||||
func ConvertToChart(name string, objects map[string]runtime.Object) (*chart.Chart, error) {
|
||||
|
||||
files := []*loader.BufferedFile{
|
||||
|
|
|
@ -39,7 +39,7 @@ const (
|
|||
clusterIPHeadless = "None"
|
||||
)
|
||||
|
||||
//MapToKubernetesObjects maps compose project to Kubernetes objects
|
||||
// MapToKubernetesObjects maps compose project to Kubernetes objects
|
||||
func MapToKubernetesObjects(project *types.Project) (map[string]runtime.Object, error) {
|
||||
objects := map[string]runtime.Object{}
|
||||
|
||||
|
|
|
@ -286,7 +286,7 @@ func GoldenFile(name string) string {
|
|||
return name + ".golden"
|
||||
}
|
||||
|
||||
//Lines split output into lines
|
||||
// Lines split output into lines
|
||||
func Lines(output string) []string {
|
||||
return strings.Split(strings.TrimSpace(output), "\n")
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче