util

package
v0.0.0-...-bc672fa Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SockDir  = "/var/run"
	SockName = "cli.sock"
)

Variables

This section is empty.

Functions

func GetCertPool

func GetCertPool() *x509.CertPool

func GetSockPath

func GetSockPath() string

Types

type Token

type Token struct {
	Value string
}

func GetToken

func GetToken(bearer string) *Token

func (*Token) GetRequestMetadata

func (t *Token) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (*Token) RequireTransportSecurity

func (t *Token) RequireTransportSecurity() bool

Jump to

Keyboard shortcuts

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