Documentation
¶
Index ¶
- Variables
- type AuthorizeDeviceFlowResult
- type AwsCredentials
- type AwsIdcInstanceCreatedEvent
- type AwsIdc_CopyRoleCredentialsCommandInput
- type AwsIdc_FinalizeRefreshAccessTokenCommandInput
- type AwsIdc_FinalizeSetupCommandInput
- type AwsIdc_SaveRoleCredentialsCommandInput
- type AwsIdc_SetupCommandInput
- type AwsIdentityCenterAccount
- type AwsIdentityCenterAccountRole
- type AwsIdentityCenterCardData
- type AwsIdentityCenterController
- func (c *AwsIdentityCenterController) AddPlumbers(plumbers ...plumbing.Plumber[AwsCredentials])
- func (c *AwsIdentityCenterController) CopyRoleCredentials(ctx app.Context, input AwsIdc_CopyRoleCredentialsCommandInput) error
- func (c *AwsIdentityCenterController) FinalizeRefreshAccessToken(ctx app.Context, input AwsIdc_FinalizeRefreshAccessTokenCommandInput) error
- func (c *AwsIdentityCenterController) FinalizeSetup(ctx app.Context, input AwsIdc_FinalizeSetupCommandInput) (string, error)
- func (c *AwsIdentityCenterController) GetInstanceData(ctx app.Context, instanceId string, forceRefresh bool) (*AwsIdentityCenterCardData, error)
- func (c *AwsIdentityCenterController) ListInstances(ctx app.Context) ([]string, error)
- func (c *AwsIdentityCenterController) MarkAsFavorite(ctx app.Context, instanceId string) error
- func (c *AwsIdentityCenterController) RefreshAccessToken(ctx app.Context, instanceId string) (*AuthorizeDeviceFlowResult, error)
- func (c *AwsIdentityCenterController) SaveRoleCredentials(ctx app.Context, input AwsIdc_SaveRoleCredentialsCommandInput) error
- func (c *AwsIdentityCenterController) Setup(ctx app.Context, input AwsIdc_SetupCommandInput) (*AuthorizeDeviceFlowResult, error)
- func (c *AwsIdentityCenterController) UnmarkAsFavorite(ctx app.Context, instanceId string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidStartUrl = app.NewValidationError("INVALID_START_URL") ErrInvalidAwsRegion = app.NewValidationError("INVALID_AWS_REGION") ErrInvalidLabel = app.NewValidationError("INVALID_LABEL") ErrDeviceAuthFlowNotAuthorized = app.NewValidationError("DEVICE_AUTH_FLOW_NOT_AUTHORIZED") ErrDeviceAuthFlowTimedOut = app.NewValidationError("DEVICE_AUTH_FLOW_TIMED_OUT") ErrInstanceWasNotFound = app.NewValidationError("INSTANCE_WAS_NOT_FOUND") ErrInstanceAlreadyRegistered = app.NewValidationError("INSTANCE_ALREADY_REGISTERED") ErrStaleAwsAccessToken = app.NewValidationError("STALE_AWS_ACCESS_TOKEN") ErrTransientAwsClientError = app.NewValidationError("TRANSIENT_AWS_CLIENT_ERROR") )
View Source
var AwsIdcEventSource = eventing.EventSource("AwsIdc")
View Source
var ProviderCode = "aws-idc"
Functions ¶
This section is empty.
Types ¶
type AuthorizeDeviceFlowResult ¶
type AuthorizeDeviceFlowResult struct { InstanceId string `json:"instanceId"` StartUrl string `json:"startUrl"` Region string `json:"region"` Label string `json:"label"` ClientId string `json:"clientId"` VerificationUri string `json:"verificationUri"` UserCode string `json:"userCode"` ExpiresIn int32 `json:"expiresIn"` DeviceCode string `json:"deviceCode"` }
type AwsCredentials ¶
type AwsIdentityCenterAccount ¶
type AwsIdentityCenterAccount struct { AccountId string `json:"accountId"` AccountName string `json:"accountName"` Roles []AwsIdentityCenterAccountRole `json:"roles"` }
type AwsIdentityCenterAccountRole ¶
type AwsIdentityCenterAccountRole struct {
RoleName string `json:"roleName"`
}
type AwsIdentityCenterCardData ¶
type AwsIdentityCenterCardData struct { InstanceId string `json:"instanceId"` Enabled bool `json:"enabled"` Label string `json:"label"` IsFavorite bool `json:"isFavorite"` IsAccessTokenExpired bool `json:"isAccessTokenExpired"` AccessTokenExpiresIn string `json:"accessTokenExpiresIn"` Accounts []AwsIdentityCenterAccount `json:"accounts"` Sinks []plumbing.SinkInstance `json:"sinks"` }
type AwsIdentityCenterController ¶
type AwsIdentityCenterController struct {
// contains filtered or unexported fields
}
func NewAwsIdentityCenterController ¶
func NewAwsIdentityCenterController(db *sql.DB, bus *eventing.Eventbus, favoritesRepo favorites.FavoritesRepo, encryptionService encryption.EncryptionService, awsSsoClient awssso.AwsSsoOidcClient, datetime utils.Clock) *AwsIdentityCenterController
func (*AwsIdentityCenterController) AddPlumbers ¶
func (c *AwsIdentityCenterController) AddPlumbers(plumbers ...plumbing.Plumber[AwsCredentials])
func (*AwsIdentityCenterController) CopyRoleCredentials ¶
func (c *AwsIdentityCenterController) CopyRoleCredentials(ctx app.Context, input AwsIdc_CopyRoleCredentialsCommandInput) error
func (*AwsIdentityCenterController) FinalizeRefreshAccessToken ¶
func (c *AwsIdentityCenterController) FinalizeRefreshAccessToken(ctx app.Context, input AwsIdc_FinalizeRefreshAccessTokenCommandInput) error
func (*AwsIdentityCenterController) FinalizeSetup ¶
func (c *AwsIdentityCenterController) FinalizeSetup(ctx app.Context, input AwsIdc_FinalizeSetupCommandInput) (string, error)
func (*AwsIdentityCenterController) GetInstanceData ¶
func (c *AwsIdentityCenterController) GetInstanceData(ctx app.Context, instanceId string, forceRefresh bool) (*AwsIdentityCenterCardData, error)
func (*AwsIdentityCenterController) ListInstances ¶
func (c *AwsIdentityCenterController) ListInstances(ctx app.Context) ([]string, error)
func (*AwsIdentityCenterController) MarkAsFavorite ¶
func (c *AwsIdentityCenterController) MarkAsFavorite(ctx app.Context, instanceId string) error
func (*AwsIdentityCenterController) RefreshAccessToken ¶
func (c *AwsIdentityCenterController) RefreshAccessToken(ctx app.Context, instanceId string) (*AuthorizeDeviceFlowResult, error)
func (*AwsIdentityCenterController) SaveRoleCredentials ¶
func (c *AwsIdentityCenterController) SaveRoleCredentials(ctx app.Context, input AwsIdc_SaveRoleCredentialsCommandInput) error
func (*AwsIdentityCenterController) Setup ¶
func (c *AwsIdentityCenterController) Setup(ctx app.Context, input AwsIdc_SetupCommandInput) (*AuthorizeDeviceFlowResult, error)
func (*AwsIdentityCenterController) UnmarkAsFavorite ¶
func (c *AwsIdentityCenterController) UnmarkAsFavorite(ctx app.Context, instanceId string) error
Click to show internal directories.
Click to hide internal directories.