Help us shape the future of Go! Take the 2026 Go Developer Survey

auth

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveClient

func ResolveClient(ctx context.Context, opts ResolveClientOptions) (client.Client, error)

ResolveClient resolves a session and builds its client in one call.

func ResolveWorkspace added in v0.3.0

func ResolveWorkspace(ctx context.Context, opts ResolveClientOptions) (string, error)

ResolveWorkspace resolves the workspace that the client of ResolveClient works in: the one a setting names, else the profile's default workspace. It is empty where neither names one.

Types

type ResolveClientOptions added in v0.2.0

type ResolveClientOptions = auth.ResolveSessionOptions

ResolveClientOptions carries the setting sources and information about the calling frontend.

type Session

type Session = auth.Session

Session is the profile, workspace and credential that ResolveClient builds its client from.

func ResolveSession

func ResolveSession(ctx context.Context, opts ResolveClientOptions) (Session, error)

ResolveSession is for a front end that needs the session itself, such as an authorization for requests that no meshStack client sends.

Jump to

Keyboard shortcuts

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