clientaccess

package
v0.0.4-rc4 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentAccessInfoToKubeConfig

func AgentAccessInfoToKubeConfig(destFile, server, token string, override *url.URL) ([]byte, *tls.Certificate, error)

func AgentAccessInfoToTempKubeConfig

func AgentAccessInfoToTempKubeConfig(tempDir, server, token string) (string, error)

func ParseUsernamePassword

func ParseUsernamePassword(token string) (string, string, bool)

Types

type Info

type Info struct {
	URL     string `json:"url,omitempty"`
	CACerts []byte `json:"cacerts,omitempty"`

	Token string `json:"token,omitempty"`
	// contains filtered or unexported fields
}

func ParseAndValidateToken

func ParseAndValidateToken(server, token string) (*Info, error)

func (*Info) KubeConfig

func (i *Info) KubeConfig() *clientcmdapi.Config

func (*Info) WriteKubeConfig

func (i *Info) WriteKubeConfig(destFile string) error

Source Files

  • clientaccess.go

Jump to

Keyboard shortcuts

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