login

package
v0.0.0-...-66c9f5b Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTermsNotAgreed = errors.New("you must agree to the Defang terms of service to use this tool")
View Source
var P = track.P

Functions

func InteractiveAgreeToS

func InteractiveAgreeToS(ctx context.Context, fabric client.FabricClient) error

func InteractiveLogin

func InteractiveLogin(ctx context.Context, cluster string) error

func InteractiveLoginMCP

func InteractiveLoginMCP(ctx context.Context, cluster string, mcpClient string) error

func InteractiveRequireLoginAndToS

func InteractiveRequireLoginAndToS(ctx context.Context, fabric client.FabricClient, addr string) (client.FabricClient, error)

InteractiveRequireLoginAndToS ensures the user is logged in and has agreed to the terms of service. If necessary, it will reconnect to the server as the right tenant, returning the updated Fabric client.

func NonInteractiveAgreeToS

func NonInteractiveAgreeToS(ctx context.Context, fabric client.FabricClient) error

func NonInteractiveGitHubLogin

func NonInteractiveGitHubLogin(ctx context.Context, fabric client.FabricClient, cluster string) error

Types

type AuthService

type AuthService interface {
	// contains filtered or unexported methods
}

type LoginFlow

type LoginFlow = auth.LoginFlow

type OpenAuthService

type OpenAuthService struct{}

Jump to

Keyboard shortcuts

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