Documentation
¶
Index ¶
- Variables
- func InteractiveAgreeToS(ctx context.Context, fabric client.FabricClient) error
- func InteractiveLogin(ctx context.Context, cluster string) error
- func InteractiveLoginMCP(ctx context.Context, cluster string, mcpClient string) error
- func InteractiveRequireLoginAndToS(ctx context.Context, fabric client.FabricClient, addr string) (client.FabricClient, error)
- func NonInteractiveAgreeToS(ctx context.Context, fabric client.FabricClient) error
- func NonInteractiveGitHubLogin(ctx context.Context, fabric client.FabricClient, cluster string) error
- type AuthService
- type LoginFlow
- type OpenAuthService
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 InteractiveLoginMCP ¶
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
Types ¶
type AuthService ¶
type AuthService interface {
// contains filtered or unexported methods
}
type OpenAuthService ¶
type OpenAuthService struct{}
Click to show internal directories.
Click to hide internal directories.