app

package
v0.0.0-...-c74aa99 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2015 License: BSD-2-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerAuthServer

type DockerAuthServer struct {
	AppPort                 string
	Audience                string
	Authenticator           authenticator.Interface
	AuthenticatorBackend    string
	AuthenticatorConfigFile string
	Authorizer              authorizer.Interface
	AuthorizerBackend       string
	AuthorizerConfigFile    string
	Issuer                  string
	PublicKey               []byte
	PublicKeyFile           string
	SigningKey              []byte
	SigningKeyFile          string
	Verbose                 bool
}

DockerAuthServer encapsulates all of the parameters necessary for starting up the web hooks server. These can either be set via command line or directly.

func NewDockerAuthServer

func NewDockerAuthServer() *DockerAuthServer

NewDockerAuthServer will create a new DockerAuthServer with default values.

func (*DockerAuthServer) AddFlags

func (s *DockerAuthServer) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for a specific DockerAuthServer to the specified FlagSet

func (*DockerAuthServer) GenerateToken

func (s *DockerAuthServer) GenerateToken(scopes []types.Scope, username string) (string, error)

GenerateToken generates the json web token

func (*DockerAuthServer) Run

func (s *DockerAuthServer) Run() error

Run runs the specified DockerAuthServer.

Jump to

Keyboard shortcuts

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