cloud

package
v0.0.0-...-13c9884 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LocalPortStart = 49852
	LocalPortEnd   = 49862
)
View Source
var ErrAuthNotCompleted = errors.New("Authentication not completed")
View Source
var ErrAuthTimeout = errors.New("Authentication aborted (timeout)")

Functions

func AutoRegisterVersion

func AutoRegisterVersion(ctx context.Context, client *mccsdk.APIClient, organization, project, componentKey string, dryRun bool, gitFilterPaths []string) (string, error)

func Login

func Login(ctx context.Context) error

func NewClient

func NewClient(ctx context.Context) (*mccsdk.APIClient, error)

func ResolveComponentsData

func ResolveComponentsData(ctx context.Context, cfg *config.MachConfig) error

func StartAuthentication

func StartAuthentication(ctx context.Context, config oauth2.Config, options *Options) (*oauth2.Token, error)

AuthorizeUser implements the PKCE OAuth2 flow.

Types

type ClientConfig

type ClientConfig struct {
	URL        string
	HTTPClient *http.Client
}

type Options

type Options struct {
	Timeout           int
	CompletedRedirect string
	CompletedTemplate string
}

Jump to

Keyboard shortcuts

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