engine

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamespaceFilePath = "/var/run/secrets/kubernetes.io/serviceaccount/namespace"
	CaFilePath        = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
)

Variables

View Source
var JWKCacheRefresh = 5 * time.Minute

Functions

func Run

func Run(options Options) error

Types

type BearerTransport

type BearerTransport struct {
	Token     string
	Transport http.RoundTripper
}

func (*BearerTransport) RoundTrip

func (b *BearerTransport) RoundTrip(req *http.Request) (*http.Response, error)

type GetJWKFunc added in v0.0.4

type GetJWKFunc func() (*jose.JSONWebKey, error)

type HttpContextKeyEmail added in v0.0.4

type HttpContextKeyEmail struct{}

type Kubernetes

type Kubernetes struct {
	// contains filtered or unexported fields
}

func NewKubernetes

func NewKubernetes() (*Kubernetes, error)

func (*Kubernetes) CA

func (k *Kubernetes) CA() ([]byte, error)

func (*Kubernetes) Endpoint

func (k *Kubernetes) Endpoint() (string, error)

Endpoint gets the cluster endpoint from within the pod

func (*Kubernetes) ExecCat

func (k *Kubernetes) ExecCat(pod string, namespace string, file string) (string, error)

func (*Kubernetes) Namespace added in v0.0.7

func (k *Kubernetes) Namespace() (string, error)

func (*Kubernetes) UpdatePermissions

func (k *Kubernetes) UpdatePermissions(rbs []RoleBinding) error

type Options

type Options struct {
	Registry      string
	Name          string
	SkipTLSVerify bool
	APIKey        string
}

type RegistrationInfo

type RegistrationInfo struct {
	CA              string
	ClusterEndpoint string
}

type RoleBinding

type RoleBinding struct {
	User string
	Role string
}

Jump to

Keyboard shortcuts

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