proxy

package
v0.0.0-...-8f25d49 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceProxySecret

func ReplaceProxySecret(namespace, datafield string, newc ProxyCredentials)

func RestartProxy

func RestartProxy(namespace, podname string)

Types

type ProxyCredentials

type ProxyCredentials struct {
	Users []struct {
		Username string `yaml:"username"`
		Password string `yaml:"password"`
		Orgid    string `yaml:"orgid"`
	} `yaml:"users"`
}

func AllProxyCredentials

func AllProxyCredentials() (ProxyCredentials, error)

collects all proxy credentials

func GetProxyCredentials

func GetProxyCredentials(file string) (ProxyCredentials, error)

input is a decoded yaml config file from the secret

type Users

type Users struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Orgid    string `yaml:"orgid"`
}

Jump to

Keyboard shortcuts

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