doctor

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:        "doctor",
	Usage:       "Run diagnostics locally to help debug common issues relating to granted and aws",
	Subcommands: []*cli.Command{},
	Action:      DoctorCommand,
	Flags: []cli.Flag{&cli.StringFlag{
		Name: "profile",
	}},
}

Functions

func DoctorCommand

func DoctorCommand(c *cli.Context) error

Types

type GrantedDoctor

type GrantedDoctor struct {
	ProfileName string
	Profile     cfaws.Profile
	Profiles    *cfaws.Profiles
	Cfg         *grantedConfig.Config
}

func (*GrantedDoctor) CheckAllAWSCacheTokens

func (d *GrantedDoctor) CheckAllAWSCacheTokens(ctx context.Context) error

func (*GrantedDoctor) CheckAllAWSKeychainTokens

func (d *GrantedDoctor) CheckAllAWSKeychainTokens(ctx context.Context) error

func (*GrantedDoctor) CheckValidCredentials

func (d *GrantedDoctor) CheckValidCredentials(ctx context.Context, token cfaws.SSOPlainTextOut) error

func (*GrantedDoctor) CommonIssuesWarningMessages

func (d *GrantedDoctor) CommonIssuesWarningMessages(ctx context.Context) error

This method handles telling the user about some of the configurations they may have set and the potential for unintended outcomes as a result

Jump to

Keyboard shortcuts

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