Documentation ¶
Index ¶
- type Client
- func (c *Client) DiscoverInstances(ctx context.Context, scanScope *models.ScanScopeType) ([]types.Instance, error)
- func (c *Client) DiscoverScopes(ctx context.Context) (*models.Scopes, error)
- func (c *Client) GetInstances(ctx context.Context, filters []ec2types.Filter, excludeTags []Tag, ...) ([]types.Instance, error)
- func (c *Client) ListAllRegions(ctx context.Context, isRecursive bool) ([]Region, error)
- func (c *Client) RunScanningJob(ctx context.Context, region, id string, config provider.ScanningJobConfig) (types.Instance, error)
- type InstanceImpl
- func (i *InstanceImpl) AttachVolume(ctx context.Context, volume types.Volume, deviceName string) error
- func (i *InstanceImpl) Delete(ctx context.Context) error
- func (i *InstanceImpl) GetAvailabilityZone() string
- func (i *InstanceImpl) GetID() string
- func (i *InstanceImpl) GetLocation() string
- func (i *InstanceImpl) GetRootVolume(ctx context.Context) (types.Volume, error)
- func (i *InstanceImpl) WaitForReady(ctx context.Context) error
- type Region
- type ScanScope
- type SecurityGroup
- type SnapshotImpl
- func (s *SnapshotImpl) Copy(ctx context.Context, dstRegion string) (types.Snapshot, error)
- func (s *SnapshotImpl) CreateVolume(ctx context.Context, availabilityZone string) (types.Volume, error)
- func (s *SnapshotImpl) Delete(ctx context.Context) error
- func (s *SnapshotImpl) GetID() string
- func (s *SnapshotImpl) GetRegion() string
- func (s *SnapshotImpl) WaitForReady(ctx context.Context) error
- type Tag
- type VPC
- type VolumeImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DiscoverInstances ¶
func (*Client) DiscoverScopes ¶
func (*Client) GetInstances ¶
func (*Client) ListAllRegions ¶
type InstanceImpl ¶
type InstanceImpl struct {
// contains filtered or unexported fields
}
func (*InstanceImpl) AttachVolume ¶
func (*InstanceImpl) GetAvailabilityZone ¶
func (i *InstanceImpl) GetAvailabilityZone() string
func (*InstanceImpl) GetID ¶
func (i *InstanceImpl) GetID() string
func (*InstanceImpl) GetLocation ¶
func (i *InstanceImpl) GetLocation() string
func (*InstanceImpl) GetRootVolume ¶
func (*InstanceImpl) WaitForReady ¶
func (i *InstanceImpl) WaitForReady(ctx context.Context) error
type ScanScope ¶
type ScanScope struct { AllRegions bool Regions []Region ScanStopped bool // Only targets that have these tags will be selected for scanning within the selected scan scope. // Multiple tags will be treated as an AND operator. TagSelector []Tag // Targets that have these tags will be excluded from the scan, even if they match the tag selector. // Multiple tags will be treated as an AND operator. ExcludeTags []Tag }
type SecurityGroup ¶
type SecurityGroup struct {
ID string
}
type SnapshotImpl ¶
type SnapshotImpl struct {
// contains filtered or unexported fields
}
func (*SnapshotImpl) CreateVolume ¶
func (*SnapshotImpl) GetID ¶
func (s *SnapshotImpl) GetID() string
func (*SnapshotImpl) GetRegion ¶
func (s *SnapshotImpl) GetRegion() string
func (*SnapshotImpl) WaitForReady ¶
func (s *SnapshotImpl) WaitForReady(ctx context.Context) error
type VPC ¶
type VPC struct { ID string SecurityGroups []SecurityGroup }
type VolumeImpl ¶
type VolumeImpl struct {
// contains filtered or unexported fields
}
func (*VolumeImpl) GetID ¶
func (v *VolumeImpl) GetID() string
func (*VolumeImpl) TakeSnapshot ¶
func (*VolumeImpl) WaitForAttached ¶
func (v *VolumeImpl) WaitForAttached(ctx context.Context) error
func (*VolumeImpl) WaitForReady ¶
func (v *VolumeImpl) WaitForReady(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.