factoryconfig

package
v1.26.1 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

Overview

Package factoryconfig holds configuration for the Factory service SDK. This service is hosted by Common Fate, so configuring a client is slightly different than configuring a client for a Common Fate deployment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// BaseURL of the Factory service to connect to.
	// Defaults to "https://factory.commonfate.io"
	// if not provided.
	BaseURL string
	// A custom HTTP Client. Defaults to http.DefaultClient
	// if not provided.
	HTTPClient *http.Client
}

func Load

func Load(ctx context.Context, opts Opts) *Context

Load a client context. You can override values by providing them in 'opts'.

func LoadDefault

func LoadDefault(ctx context.Context) *Context

LoadDefault loads a client context with all defaults configured.

type Opts

type Opts = Context // held to avoid breaking changes here, in future the structs may become different.

Jump to

Keyboard shortcuts

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