helpers

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeoutError = errors.Errorf("timed out while waiting for install to transition to 'accepted' status")

Functions

func GetLatestVersion

func GetLatestVersion(ctx context.Context, repo string) (string, error)

func GetPublicGithubClient

func GetPublicGithubClient(ctx context.Context) *github.Client

func IsValidVersion

func IsValidVersion(ctx context.Context, repo, version string) (string, error)

func MustMarshal

func MustMarshal(v interface{}) string

func MustMarshalProto

func MustMarshalProto(v proto.Message) string

func ParseAwsCredentialsFile

func ParseAwsCredentialsFile(path string) ([]*ini.Section, error)

func PrintInstalls

func PrintInstalls(list v1.InstallList, outputType string)

func PrintMeshes

func PrintMeshes(list v1.MeshList, outputType string)

func PrintRoutingRules

func PrintRoutingRules(list v1.RoutingRuleList, outputType string)

func PrintSecrets

func PrintSecrets(list gloov1.SecretList, outputType string)

func PrintSecurityRules

func PrintSecurityRules(list v1.SecurityRuleList, outputType string)

func PrintTlsSecrets

func PrintTlsSecrets(list v1.TlsSecretList, outputType string)

func SetAwsCredentialsFromSection

func SetAwsCredentialsFromSection(opts *options.Options, section *ini.Section) error

func SetKubectlMock added in v0.3.22

func SetKubectlMock(mockKubectl *mocks.MockKubectl)

func WaitForInstallStatus added in v0.3.22

func WaitForInstallStatus(ctx context.Context, installRef core.ResourceRef, desiredState core.Status_State, timeout time.Duration) error

TODO: generalize and move to go-utils (or solo-kit?) Blocks until the install transitions to the given status, times out, or any error occurs

Types

type Kubectl added in v0.3.22

type Kubectl interface {
	ApplyManifest(manifest string) error
}

func NewKubectl added in v0.3.22

func NewKubectl() Kubectl

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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