Documentation ¶
Index ¶
- type NewServiceInput
- type RemoveService
- type RoleService
- type Service
- func (s *Service) CreateNewRole(input *client.RoleCreationInfo) (arn string, externalID string, err error)
- func (s *Service) DeleteRole(roleName string)
- func (s *Service) RemoveEventStream(input *client.EventRemoveConfig) error
- func (s *Service) SetupEventStream(input *client.EventStreamConfig) error
- type SetupService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewServiceInput ¶ added in v0.0.21
type NewServiceInput struct { AwsProfile string AwsProfilePath string Policy string RoleSessionName string Duration int64 IgnoreMissingTrails bool }
NewServiceInput contains the info for creating a new Service
type RemoveService ¶ added in v0.0.23
type RemoveService struct {
// contains filtered or unexported fields
}
RemoveService contains info needed for AWS event stream removal
func NewRemoveService ¶ added in v0.0.23
func NewRemoveService(input *NewServiceInput) *RemoveService
NewRemoveService returns an instance of RemoveService
func (*RemoveService) RemoveEventStream ¶ added in v0.0.23
func (a *RemoveService) RemoveEventStream(input *client.EventRemoveConfig) error
RemoveEventStream perform the same function as event stream removal script
type RoleService ¶ added in v0.0.21
type RoleService struct {
// contains filtered or unexported fields
}
RoleService interacts with aws role
func NewRoleService ¶ added in v0.0.21
func NewRoleService(input *NewServiceInput) *RoleService
NewRoleService returns a new RoleService
func (*RoleService) CreateNewRole ¶ added in v0.0.21
func (c *RoleService) CreateNewRole(input *client.RoleCreationInfo) (arn string, externalID string, err error)
CreateNewRole created a role with specified policy attached
func (*RoleService) DeleteRole ¶ added in v0.0.21
func (c *RoleService) DeleteRole(roleName string) error
DeleteRole will remove the role created before if the cloud account add fails
func (*RoleService) DetachPolicy ¶ added in v0.0.23
func (c *RoleService) DetachPolicy(roleName, policyArn string) error
DetachPolicy removes all policy for the role
type Service ¶ added in v0.0.21
type Service struct {
// contains filtered or unexported fields
}
Service contains three aws service groups
func NewService ¶ added in v0.0.21
func NewService(input *NewServiceInput) *Service
NewService returns a new aws service group
func (*Service) CreateNewRole ¶ added in v0.0.21
func (s *Service) CreateNewRole(input *client.RoleCreationInfo) (arn string, externalID string, err error)
CreateNewRole calls the CreateNewRole function in RoleService
func (*Service) DeleteRole ¶ added in v0.0.21
DeleteRole calls the DeleteRole function in RoleService
func (*Service) RemoveEventStream ¶ added in v0.0.23
func (s *Service) RemoveEventStream(input *client.EventRemoveConfig) error
RemoveEventStream perform the same function as event stream removal script
func (*Service) SetupEventStream ¶ added in v0.0.21
func (s *Service) SetupEventStream(input *client.EventStreamConfig) error
SetupEventStream calls the SetupEventStream function in SetupService
type SetupService ¶ added in v0.0.21
type SetupService struct {
// contains filtered or unexported fields
}
SetupService is the struct implements CloudProvider interface for aws
func NewSetupService ¶ added in v0.0.21
func NewSetupService(input *NewServiceInput) *SetupService
NewSetupService returns a pointer to a setup struct object
func (*SetupService) SetupEventStream ¶ added in v0.0.21
func (a *SetupService) SetupEventStream(input *client.EventStreamConfig) error
SetupEventStream sets up event stream for aws account