setup

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package setup provides the use case of setting up environment.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Interface

type Interface interface {
	DoStage1()
	DoStage2(ctx context.Context, in Stage2Input) error
}

type Setup

type Setup struct {
	Authentication authentication.Interface
	NewCertPool    certpool.NewFunc
	Logger         logger.Interface
}

func (*Setup) DoStage1

func (u *Setup) DoStage1()

func (*Setup) DoStage2

func (u *Setup) DoStage2(ctx context.Context, in Stage2Input) error

type Stage2Input

type Stage2Input struct {
	IssuerURL         string
	ClientID          string
	ClientSecret      string
	ExtraScopes       []string // optional
	CACertFilename    string   // optional
	CACertData        string   // optional
	SkipTLSVerify     bool
	ListenAddressArgs []string // non-nil if set by the command arg
	GrantOptionSet    authentication.GrantOptionSet
}

Stage2Input represents an input DTO of the stage2.

Jump to

Keyboard shortcuts

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