Documentation ¶
Index ¶
- func PossibleValuesForAttackTactic() []string
- func PossibleValuesForHypothesisStatus() []string
- func PossibleValuesForOwnerType() []string
- func PossibleValuesForStatus() []string
- func ValidateHuntID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)
- type AttackTactic
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type Hunt
- type HuntId
- type HuntOperationPredicate
- type HuntOwner
- type HuntProperties
- type HuntsClient
- func (c HuntsClient) CreateOrUpdate(ctx context.Context, id HuntId, input Hunt) (result CreateOrUpdateOperationResponse, err error)
- func (c HuntsClient) Delete(ctx context.Context, id HuntId) (result DeleteOperationResponse, err error)
- func (c HuntsClient) Get(ctx context.Context, id HuntId) (result GetOperationResponse, err error)
- func (c HuntsClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c HuntsClient) ListComplete(ctx context.Context, id WorkspaceId, options ListOperationOptions) (ListCompleteResult, error)
- func (c HuntsClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- type HypothesisStatus
- type ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type OwnerType
- type Status
- type WorkspaceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAttackTactic ¶
func PossibleValuesForAttackTactic() []string
func PossibleValuesForHypothesisStatus ¶
func PossibleValuesForHypothesisStatus() []string
func PossibleValuesForOwnerType ¶
func PossibleValuesForOwnerType() []string
func PossibleValuesForStatus ¶
func PossibleValuesForStatus() []string
func ValidateHuntID ¶
ValidateHuntID checks that 'input' can be parsed as a Hunt ID
func ValidateWorkspaceID ¶
ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID
Types ¶
type AttackTactic ¶
type AttackTactic string
const ( AttackTacticCollection AttackTactic = "Collection" AttackTacticCommandAndControl AttackTactic = "CommandAndControl" AttackTacticCredentialAccess AttackTactic = "CredentialAccess" AttackTacticDefenseEvasion AttackTactic = "DefenseEvasion" AttackTacticDiscovery AttackTactic = "Discovery" AttackTacticExecution AttackTactic = "Execution" AttackTacticExfiltration AttackTactic = "Exfiltration" AttackTacticImpact AttackTactic = "Impact" AttackTacticImpairProcessControl AttackTactic = "ImpairProcessControl" AttackTacticInhibitResponseFunction AttackTactic = "InhibitResponseFunction" AttackTacticInitialAccess AttackTactic = "InitialAccess" AttackTacticLateralMovement AttackTactic = "LateralMovement" AttackTacticPersistence AttackTactic = "Persistence" AttackTacticPreAttack AttackTactic = "PreAttack" AttackTacticPrivilegeEscalation AttackTactic = "PrivilegeEscalation" AttackTacticReconnaissance AttackTactic = "Reconnaissance" AttackTacticResourceDevelopment AttackTactic = "ResourceDevelopment" )
func (*AttackTactic) UnmarshalJSON ¶
func (s *AttackTactic) UnmarshalJSON(bytes []byte) error
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type Hunt ¶
type Hunt struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *HuntProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type HuntId ¶
type HuntId struct { SubscriptionId string ResourceGroupName string WorkspaceName string HuntId string }
HuntId is a struct representing the Resource ID for a Hunt
func NewHuntID ¶
func NewHuntID(subscriptionId string, resourceGroupName string, workspaceName string, huntId string) HuntId
NewHuntID returns a new HuntId struct
func ParseHuntID ¶
ParseHuntID parses 'input' into a HuntId
func ParseHuntIDInsensitively ¶
ParseHuntIDInsensitively parses 'input' case-insensitively into a HuntId note: this method should only be used for API response data and not user input
func (*HuntId) FromParseResult ¶
func (id *HuntId) FromParseResult(input resourceids.ParseResult) error
func (HuntId) Segments ¶
func (id HuntId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Hunt ID
type HuntOperationPredicate ¶
func (HuntOperationPredicate) Matches ¶
func (p HuntOperationPredicate) Matches(input Hunt) bool
type HuntProperties ¶
type HuntProperties struct { AttackTactics *[]AttackTactic `json:"attackTactics,omitempty"` AttackTechniques *[]string `json:"attackTechniques,omitempty"` Description string `json:"description"` DisplayName string `json:"displayName"` HypothesisStatus *HypothesisStatus `json:"hypothesisStatus,omitempty"` Labels *[]string `json:"labels,omitempty"` Owner *HuntOwner `json:"owner,omitempty"` Status *Status `json:"status,omitempty"` }
type HuntsClient ¶
type HuntsClient struct {
Client *resourcemanager.Client
}
func NewHuntsClientWithBaseURI ¶
func NewHuntsClientWithBaseURI(sdkApi sdkEnv.Api) (*HuntsClient, error)
func (HuntsClient) CreateOrUpdate ¶
func (c HuntsClient) CreateOrUpdate(ctx context.Context, id HuntId, input Hunt) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (HuntsClient) Delete ¶
func (c HuntsClient) Delete(ctx context.Context, id HuntId) (result DeleteOperationResponse, err error)
Delete ...
func (HuntsClient) Get ¶
func (c HuntsClient) Get(ctx context.Context, id HuntId) (result GetOperationResponse, err error)
Get ...
func (HuntsClient) List ¶
func (c HuntsClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (HuntsClient) ListComplete ¶
func (c HuntsClient) ListComplete(ctx context.Context, id WorkspaceId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (HuntsClient) ListCompleteMatchingPredicate ¶
func (c HuntsClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options ListOperationOptions, predicate HuntOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type HypothesisStatus ¶
type HypothesisStatus string
const ( HypothesisStatusInvalidated HypothesisStatus = "Invalidated" HypothesisStatusUnknown HypothesisStatus = "Unknown" HypothesisStatusValidated HypothesisStatus = "Validated" )
func (*HypothesisStatus) UnmarshalJSON ¶
func (s *HypothesisStatus) UnmarshalJSON(bytes []byte) error
type ListCompleteResult ¶
type ListCustomPager ¶
func (*ListCustomPager) NextPageLink ¶
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type WorkspaceId ¶
WorkspaceId is a struct representing the Resource ID for a Workspace
func NewWorkspaceID ¶
func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId
NewWorkspaceID returns a new WorkspaceId struct
func ParseWorkspaceID ¶
func ParseWorkspaceID(input string) (*WorkspaceId, error)
ParseWorkspaceID parses 'input' into a WorkspaceId
func ParseWorkspaceIDInsensitively ¶
func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)
ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId note: this method should only be used for API response data and not user input
func (*WorkspaceId) FromParseResult ¶
func (id *WorkspaceId) FromParseResult(input resourceids.ParseResult) error
func (WorkspaceId) Segments ¶
func (id WorkspaceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Workspace ID
func (WorkspaceId) String ¶
func (id WorkspaceId) String() string
String returns a human-readable description of this Workspace ID