assets

package
v4.0.0-0.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssetPathRootCAKey             = "tls/root-ca.key"
	AssetPathRootCACert            = "tls/root-ca.crt"
	AssetPathKubeCAKey             = "tls/kube-ca.key"
	AssetPathKubeCACert            = "tls/kube-ca.crt"
	AssetPathAPIServerKey          = "tls/apiserver.key"
	AssetPathAPIServerCert         = "tls/apiserver.crt"
	AssetPathServiceAccountPrivKey = "tls/service-account.key"
	AssetPathServiceAccountPubKey  = "tls/service-account.pub"
	AssetPathAdminKey              = "tls/admin.key"
	AssetPathAdminCert             = "tls/admin.crt"
	AssetPathAggregatorCACert      = "tls/aggregator-ca.crt"
	AssetPathApiserverProxyKey     = "tls/apiserver-proxy.key"
	AssetPathApiserverProxyCert    = "tls/apiserver-proxy.crt"
)
View Source
const (
	AssetPathEtcdClientCA   = "tls/etcd-client-ca.crt"
	AssetPathEtcdClientKey  = "tls/etcd-client.key"
	AssetPathEtcdClientCert = "tls/etcd-client.crt"

	AssetPathEtcdPeerCA     = "tls/etcd-peer-ca.crt"
	AssetPathEtcdPeerKey    = "tls/etcd-peer.key"
	AssetPathEtcdPeerCert   = "tls/etcd-peer.crt"
	AssetPathEtcdServerKey  = "tls/etcd-server.key"
	AssetPathEtcdServerCert = "tls/etcd-server.crt"
)
View Source
const (
	AssetAdminKubeConfig = "auth/admin.kubeconfig"
	AssetKubeConfig      = "auth/kubeconfig"
	AssetTLSKubeConfig   = "tls/kubeconfig"
)

Variables

View Source
var KubeConfigTemplate = []byte(`apiVersion: v1
kind: Config
clusters:
- name: local
  cluster:
    server: {{ .ServerURL }}
    certificate-authority-data: {{ .CACert | base64 }}
users:
- name: admin
  user:
    client-certificate-data: {{ .AdminCert | base64 }}
    client-key-data: {{ .AdminKey | base64 }}
contexts:
- context:
    cluster: local
    user: admin
`)

Functions

This section is empty.

Types

type TLSAssetsRenderOptions

type TLSAssetsRenderOptions struct {
	AltNames tlsutil.AltNames
	// contains filtered or unexported fields
}

func NewTLSAssetsRenderer

func NewTLSAssetsRenderer(hostname string) *TLSAssetsRenderOptions

func (*TLSAssetsRenderOptions) Render

func (r *TLSAssetsRenderOptions) Render() (*assetslib.Assets, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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