api

package
v0.0.0-...-6ca930f Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Default binary version.
	DefaultBinaryVersion = "0.6.0-rc0"
	// Default download timeout.
	DefaultDownloadTimeout = 30 * time.Second
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Version string
	// Location where the binary will be downloaded.
	Dir          string
	Logger       telemetry.Logger
	FilterConfig *config.Config
}

Config holds the configuration object for running auth_server.

type Service

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

Service is a run.Service implementation that runs auth_server.

func New

func New(cfg *Config) *Service

New returns a new run.Service that wraps auth_server binary. Setting the cfg to nil, expecting setting the auth_server's --filter_config from a file.

func (*Service) FlagSet

func (s *Service) FlagSet() *run.FlagSet

FlagSet provides command line flags for external auth-service.

func (*Service) GracefulStop

func (s *Service) GracefulStop()

GracefulStop stops the underlying process by sending interrupt.

func (*Service) Name

func (s *Service) Name() string

Name returns the service name.

func (*Service) PreRun

func (s *Service) PreRun() (err error)

PreRun prepares the biany to run.

func (*Service) Serve

func (s *Service) Serve() error

Serve runs the binary.

func (*Service) Validate

func (s *Service) Validate() error

Validate validates the given configuration.

Jump to

Keyboard shortcuts

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