ensign

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingClientID     = errors.New("missing client id")
	ErrMissingClientSecret = errors.New("missing client secret")
	ErrMissingEndpoint     = errors.New("missing endpoint")
	ErrMissingAuthURL      = errors.New("missing auth url")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientID     string `split_words:"true"`
	ClientSecret string `split_words:"true"`
	Endpoint     string `split_words:"true" default:"ensign.rotational.app:443"`
	AuthURL      string `split_words:"true" default:"https://auth.rotational.app"`
	Insecure     bool   `split_words:"true" default:"false"`
	Testing      bool   `split_words:"true" default:"false"`
}

Config defines common configuration for Ensign clients.

func (Config) Client

func (c Config) Client() (*sdk.Client, error)

Create an Ensign client from the configuration.

func (Config) ClientOptions

func (c Config) ClientOptions() []sdk.Option

func (Config) Validate

func (c Config) Validate() error

Jump to

Keyboard shortcuts

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