models

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OmitEmpty

func OmitEmpty(raw json.RawMessage) (json.RawMessage, error)

func StripEmptyEntries

func StripEmptyEntries(data map[string]any)

Types

type App

type App struct {
	azure.Application
	TenantId   string `json:"tenantId"`
	TenantName string `json:"tenantName"`
}

type AppMember

type AppMember struct {
	json.RawMessage
	AppId string `json:"appId"`
}

func (*AppMember) MarshalJSON

func (s *AppMember) MarshalJSON() ([]byte, error)

type AppOwner

type AppOwner struct {
	Owner json.RawMessage `json:"owner"`
	AppId string          `json:"appId"`
}

func (*AppOwner) MarshalJSON

func (s *AppOwner) MarshalJSON() ([]byte, error)

type AppOwners

type AppOwners struct {
	Owners []AppOwner `json:"owners"`
	AppId  string     `json:"appId"`
}

type AppRoleAssignment

type AppRoleAssignment struct {
	azure.AppRoleAssignment
	AppId    string `json:"appId"`
	TenantId string `json:"tenantId"`
}

type AutomationAccount

type AutomationAccount struct {
	azure.AutomationAccount
	SubscriptionId    string `json:"subscriptionId"`
	ResourceGroupId   string `json:"resourceGroupId"`
	ResourceGroupName string `json:"resourceGroupName"`
	TenantId          string `json:"tenantId"`
}

type AzureRoleAssignment

type AzureRoleAssignment struct {
	Assignee         azure.RoleAssignment `json:"assignee"`
	ObjectId         string               `json:"objectId"`
	RoleDefinitionId string               `json:"roleDefinitionId"`
}

type AzureRoleAssignments

type AzureRoleAssignments struct {
	RoleAssignments []AzureRoleAssignment `json:"assignees"`
	ObjectId        string                `json:"objectId"`
}

type ClientJob

type ClientJob struct {
	ID               int       `json:"id"`
	ClientID         string    `json:"client_id"`
	ClientName       string    `json:"client_name"`
	ClientScheduleID int       `json:"event_id"`
	ExecutionTime    time.Time `json:"execution_time"`
	StartTime        time.Time `json:"start_time"`
	EndTime          time.Time `json:"end_time"`
	Status           JobStatus `json:"status"`
	StatusMessage    string    `json:"status_message"`
}

type ClientTask

type ClientTask struct {
	ADStructureCollection bool      `json:"ad_structure_collection"`
	ClientId              string    `json:"client_id"`
	CreatedAt             time.Time `json:"created_at"`
	DomainController      string    `json:"domain_controller"`
	EndTime               time.Time `json:"end_time"`
	EventId               int       `json:"event_id"`
	EventTitle            string    `json:"event_title"`
	ExectionTime          time.Time `json:"exection_time"`
	Id                    int       `json:"id"`
	LocalGroupCollection  bool      `json:"local_group_collection"`
	LogPath               string    `json:"log_path"`
	SessionCollection     bool      `json:"session_collection"`
	StartTime             time.Time `json:"start_time"`
	Status                int       `json:"status"`
	UpdatedAt             time.Time `json:"updated_at"`
}

type CompleteJobRequest

type CompleteJobRequest struct {
	Status     string    `json:"status"`
	StatusEnum JobStatus `json:"-"`
	Message    string    `json:"message"`
}

type ContainerRegistry

type ContainerRegistry struct {
	azure.ContainerRegistry
	SubscriptionId    string `json:"subscriptionId"`
	ResourceGroupId   string `json:"resourceGroupId"`
	ResourceGroupName string `json:"resourceGroupName"`
	TenantId          string `json:"tenantId"`
}

type Device

type Device struct {
	azure.Device
	TenantId   string `json:"tenantId"`
	TenantName string `json:"tenantName"`
}

type DeviceOwner

type DeviceOwner struct {
	Owner    json.RawMessage `json:"owner"`
	DeviceId string          `json:"deviceId"`
}

func (*DeviceOwner) MarshalJSON

func (s *DeviceOwner) MarshalJSON() ([]byte, error)

type DeviceOwners

type DeviceOwners struct {
	Owners   []DeviceOwner `json:"owners"`
	DeviceId string        `json:"deviceId"`
}

type FunctionApp

type FunctionApp struct {
	azure.FunctionApp
	SubscriptionId    string `json:"subscriptionId"`
	ResourceGroupId   string `json:"resourceGroupId"`
	ResourceGroupName string `json:"resourceGroupName"`
	TenantId          string `json:"tenantId"`
}

type Group

type Group struct {
	azure.Group
	TenantId   string `json:"tenantId"`
	TenantName string `json:"tenantName"`
}

type GroupMember

type GroupMember struct {
	Member  json.RawMessage `json:"member"`
	GroupId string          `json:"groupId"`
}

func (*GroupMember) MarshalJSON

func (s *GroupMember) MarshalJSON() ([]byte, error)

type GroupMembers

type GroupMembers struct {
	Members []GroupMember `json:"members"`
	GroupId string        `json:"groupId"`
}

type GroupOwner

type GroupOwner struct {
	Owner   json.RawMessage `json:"owner"`
	GroupId string          `json:"groupId"`
}

func (*GroupOwner) MarshalJSON

func (s *GroupOwner) MarshalJSON() ([]byte, error)

type GroupOwners

type GroupOwners struct {
	Owners  []GroupOwner `json:"owners"`
	GroupId string       `json:"groupId"`
}

type IngestRequest

type IngestRequest struct {
	Meta Meta        `json:"meta"`
	Data interface{} `json:"data"`
}

type JobStatus

type JobStatus int
const (
	JobStatusInvalid   JobStatus = -1
	JobStatusReady     JobStatus = 0
	JobStatusRunning   JobStatus = 1
	JobStatusComplete  JobStatus = 2
	JobStatusCanceled  JobStatus = 3
	JobStatusTimedOut  JobStatus = 4
	JobStatusFailed    JobStatus = 5
	JobStatusIngesting JobStatus = 6
)

func (JobStatus) String

func (s JobStatus) String() string

type KeyVault

type KeyVault struct {
	azure.KeyVault
	SubscriptionId string `json:"subscriptionId"`
	ResourceGroup  string `json:"resourceGroup"`
	TenantId       string `json:"tenantId"`
}

type KeyVaultAccessPolicy

type KeyVaultAccessPolicy struct {
	azure.AccessPolicyEntry
	KeyVaultId string `json:"keyVaultId"`
}

type KeyVaultContributor

type KeyVaultContributor struct {
	Contributor azure.RoleAssignment `json:"contributor"`
	KeyVaultId  string               `json:"keyVaultId"`
}

type KeyVaultContributors

type KeyVaultContributors struct {
	Contributors []KeyVaultContributor `json:"contributors"`
	KeyVaultId   string                `json:"keyVaultId"`
}

type KeyVaultKVContributor

type KeyVaultKVContributor struct {
	KVContributor azure.RoleAssignment `json:"kvContributor"`
	KeyVaultId    string               `json:"keyVaultId"`
}

type KeyVaultKVContributors

type KeyVaultKVContributors struct {
	KVContributors []KeyVaultKVContributor `json:"kvContributors"`
	KeyVaultId     string                  `json:"keyVaultId"`
}

type KeyVaultOwner

type KeyVaultOwner struct {
	Owner      azure.RoleAssignment `json:"owner"`
	KeyVaultId string               `json:"keyVaultId"`
}

type KeyVaultOwners

type KeyVaultOwners struct {
	Owners     []KeyVaultOwner `json:"owners"`
	KeyVaultId string          `json:"keyVaultId"`
}

type KeyVaultRoleAssignment

type KeyVaultRoleAssignment struct {
	RoleAssignment azure.RoleAssignment `json:"roleAssignment"`
	KeyVaultId     string               `json:"virtualMachineId"`
}

type KeyVaultRoleAssignments

type KeyVaultRoleAssignments struct {
	RoleAssignments []KeyVaultRoleAssignment `json:"roleAssignments"`
	KeyVaultId      string                   `json:"virtualMachineId"`
}

type KeyVaultUserAccessAdmin

type KeyVaultUserAccessAdmin struct {
	UserAccessAdmin azure.RoleAssignment `json:"userAccessAdmin"`
	KeyVaultId      string               `json:"keyVaultId"`
}

type KeyVaultUserAccessAdmins

type KeyVaultUserAccessAdmins struct {
	UserAccessAdmins []KeyVaultUserAccessAdmin `json:"userAccessAdmins"`
	KeyVaultId       string                    `json:"keyVaultId"`
}

type LogicApp

type LogicApp struct {
	azure.LogicApp
	SubscriptionId    string `json:"subscriptionId"`
	ResourceGroupId   string `json:"resourceGroupId"`
	ResourceGroupName string `json:"resourceGroupName"`
	TenantId          string `json:"tenantId"`
}

type ManagedCluster

type ManagedCluster struct {
	azure.ManagedCluster
	SubscriptionId  string `json:"subscriptionId"`
	ResourceGroupId string `json:"resourceGroupId"`
	TenantId        string `json:"tenantId"`
}

type ManagementGroup

type ManagementGroup struct {
	azure.ManagementGroup
	TenantId   string `json:"tenantId"`
	TenantName string `json:"tenantName"`
}

type ManagementGroupOwner

type ManagementGroupOwner struct {
	Owner             azure.RoleAssignment `json:"owner"`
	ManagementGroupId string               `json:"managementGroupId"`
}

type ManagementGroupOwners

type ManagementGroupOwners struct {
	Owners            []ManagementGroupOwner `json:"owners"`
	ManagementGroupId string                 `json:"managementGroupId"`
}

type ManagementGroupRoleAssignment

type ManagementGroupRoleAssignment struct {
	RoleAssignment    azure.RoleAssignment `json:"roleAssignment"`
	ManagementGroupId string               `json:"managementGroupId"`
}

type ManagementGroupRoleAssignments

type ManagementGroupRoleAssignments struct {
	RoleAssignments   []ManagementGroupRoleAssignment `json:"roleAssignments"`
	ManagementGroupId string                          `json:"managementGroupId"`
}

type ManagementGroupUserAccessAdmin

type ManagementGroupUserAccessAdmin struct {
	UserAccessAdmin   azure.RoleAssignment `json:"userAccessAdmin"`
	ManagementGroupId string               `json:"managementGroupId"`
}

type ManagementGroupUserAccessAdmins

type ManagementGroupUserAccessAdmins struct {
	UserAccessAdmins  []ManagementGroupUserAccessAdmin `json:"userAccessAdmins"`
	ManagementGroupId string                           `json:"managementGroupId"`
}

type Meta

type Meta struct {
	Type    string `json:"type"`
	Version int    `json:"version"`
	Count   int    `json:"count"`
}

type NetworkSecurityGroup added in v3.0.1

type NetworkSecurityGroup struct {
	azure.NetworkSecurityGroup
	TenantId   string `json:"tenantId"`
	TenantName string `json:"tenantName"`
}

type ResourceGroup

type ResourceGroup struct {
	azure.ResourceGroup
	SubscriptionId string `json:"subscriptionId"`
	TenantId       string `json:"tenantId"`
}

type ResourceGroupOwner

type ResourceGroupOwner struct {
	Owner           azure.RoleAssignment `json:"owner"`
	ResourceGroupId string               `json:"resourceGroupId"`
}

type ResourceGroupOwners

type ResourceGroupOwners struct {
	Owners          []ResourceGroupOwner `json:"owners"`
	ResourceGroupId string               `json:"resourceGroupId"`
}

type ResourceGroupRoleAssignment

type ResourceGroupRoleAssignment struct {
	RoleAssignment  azure.RoleAssignment `json:"roleAssignment"`
	ResourceGroupId string               `json:"resourceGroupId"`
}

type ResourceGroupRoleAssignments

type ResourceGroupRoleAssignments struct {
	RoleAssignments []ResourceGroupRoleAssignment `json:"roleAssignments"`
	ResourceGroupId string                        `json:"resourceGroupId"`
}

type ResourceGroupUserAccessAdmin

type ResourceGroupUserAccessAdmin struct {
	UserAccessAdmin azure.RoleAssignment `json:"userAccessAdmin"`
	ResourceGroupId string               `json:"resourceGroupId"`
}

type ResourceGroupUserAccessAdmins

type ResourceGroupUserAccessAdmins struct {
	UserAccessAdmins []ResourceGroupUserAccessAdmin `json:"userAccessAdmins"`
	ResourceGroupId  string                         `json:"resourceGroupId"`
}

type Role

type Role struct {
	azure.Role
	TenantId   string `json:"tenantId"`
	TenantName string `json:"tenantName"`
}

type RoleAssignments

type RoleAssignments struct {
	RoleAssignments  []azure.UnifiedRoleAssignment `json:"roleAssignments"`
	RoleDefinitionId string                        `json:"roleDefinitionId"`
	TenantId         string                        `json:"tenantId"`
}

type ServicePrincipal

type ServicePrincipal struct {
	azure.ServicePrincipal
	TenantId   string `json:"tenantId"`
	TenantName string `json:"tenantName"`
}

type ServicePrincipalOwner

type ServicePrincipalOwner struct {
	Owner              json.RawMessage `json:"owner"`
	ServicePrincipalId string          `json:"servicePrincipalId"`
}

func (*ServicePrincipalOwner) MarshalJSON

func (s *ServicePrincipalOwner) MarshalJSON() ([]byte, error)

type ServicePrincipalOwners

type ServicePrincipalOwners struct {
	Owners             []ServicePrincipalOwner `json:"owners"`
	ServicePrincipalId string                  `json:"servicePrincipalId"`
}

type StorageAccount

type StorageAccount struct {
	azure.StorageAccount
	SubscriptionId    string `json:"subscriptionId"`
	ResourceGroupId   string `json:"resourceGroupId"`
	ResourceGroupName string `json:"resourceGroupName"`
	TenantId          string `json:"tenantId"`
}

type StorageContainer

type StorageContainer struct {
	azure.StorageContainer
	SubscriptionId    string `json:"subscriptionId"`
	ResourceGroupId   string `json:"resourceGroupId"`
	ResourceGroupName string `json:"resourceGroupName"`
	StorageAccountId  string `json:"storageAccountId"`
	TenantId          string `json:"tenantId"`
}

type Subscription

type Subscription struct {
	azure.Subscription
	TenantId string `json:"tenantId"`
}

type SubscriptionOwner

type SubscriptionOwner struct {
	Owner          azure.RoleAssignment `json:"owner"`
	SubscriptionId string               `json:"subscriptionId"`
}

type SubscriptionOwners

type SubscriptionOwners struct {
	Owners         []SubscriptionOwner `json:"owners"`
	SubscriptionId string              `json:"subscriptionId"`
}

type SubscriptionRoleAssignment

type SubscriptionRoleAssignment struct {
	RoleAssignment azure.RoleAssignment `json:"roleAssignment"`
	SubscriptionId string               `json:"subscriptionId"`
}

type SubscriptionRoleAssignments

type SubscriptionRoleAssignments struct {
	RoleAssignments []SubscriptionRoleAssignment `json:"roleAssignments"`
	SubscriptionId  string                       `json:"subscriptionId"`
}

type SubscriptionUserAccessAdmin

type SubscriptionUserAccessAdmin struct {
	UserAccessAdmin azure.RoleAssignment `json:"userAccessAdmin"`
	SubscriptionId  string               `json:"subscriptionId"`
}

type SubscriptionUserAccessAdmins

type SubscriptionUserAccessAdmins struct {
	UserAccessAdmins []SubscriptionUserAccessAdmin `json:"userAccessAdmins"`
	SubscriptionId   string                        `json:"subscriptionId"`
}

type Tenant

type Tenant struct {
	azure.Tenant
	Collected bool `json:"collected,omitempty"`
}

type UpdateClientRequest

type UpdateClientRequest struct {
	Address  string `json:"address"`
	Username string `json:"username"`
	Hostname string `json:"hostname"`
	Version  string `json:"version"`
	UserSid  string `json:"usersid"`
}

type UpdateClientResponse

type UpdateClientResponse struct {
	ID           string    `json:"id"`
	Name         string    `json:"name"`
	IPAddress    string    `json:"ip_address"`
	Hostname     string    `json:"hostname"`
	CurrentJobID int       `json:"current_job_id"`
	CurrentJob   ClientJob `json:"current_job"`
}

type User

type User struct {
	azure.User
	TenantId   string `json:"tenantId"`
	TenantName string `json:"tenantName"`
}

type VMScaleSet

type VMScaleSet struct {
	azure.VMScaleSet
	SubscriptionId  string `json:"subscriptionId"`
	ResourceGroupId string `json:"resourceGroupId"`
	TenantId        string `json:"tenantId"`
}

type VirtualMachine

type VirtualMachine struct {
	azure.VirtualMachine
	SubscriptionId  string `json:"subscriptionId"`
	ResourceGroupId string `json:"resourceGroupId"`
	TenantId        string `json:"tenantId"`
}

type VirtualMachineAdminLogin

type VirtualMachineAdminLogin struct {
	AdminLogin       azure.RoleAssignment `json:"adminLogin"`
	VirtualMachineId string               `json:"virtualMachineId"`
}

type VirtualMachineAdminLogins

type VirtualMachineAdminLogins struct {
	AdminLogins      []VirtualMachineAdminLogin `json:"adminLogins"`
	VirtualMachineId string                     `json:"virtualMachineId"`
}

type VirtualMachineAvereContributor

type VirtualMachineAvereContributor struct {
	AvereContributor azure.RoleAssignment `json:"avereContributor"`
	VirtualMachineId string               `json:"virtualMachineId"`
}

type VirtualMachineAvereContributors

type VirtualMachineAvereContributors struct {
	AvereContributors []VirtualMachineAvereContributor `json:"avereContributors"`
	VirtualMachineId  string                           `json:"virtualMachineId"`
}

type VirtualMachineContributor

type VirtualMachineContributor struct {
	Contributor      azure.RoleAssignment `json:"contributor"`
	VirtualMachineId string               `json:"virtualMachineId"`
}

type VirtualMachineContributors

type VirtualMachineContributors struct {
	Contributors     []VirtualMachineContributor `json:"contributors"`
	VirtualMachineId string                      `json:"virtualMachineId"`
}

type VirtualMachineOwner

type VirtualMachineOwner struct {
	Owner            azure.RoleAssignment `json:"owner"`
	VirtualMachineId string               `json:"virtualMachineId"`
}

type VirtualMachineOwners

type VirtualMachineOwners struct {
	Owners           []VirtualMachineOwner `json:"owners"`
	VirtualMachineId string                `json:"virtualMachineId"`
}

type VirtualMachineRoleAssignment

type VirtualMachineRoleAssignment struct {
	RoleAssignment   azure.RoleAssignment `json:"roleAssignment"`
	VirtualMachineId string               `json:"virtualMachineId"`
}

type VirtualMachineRoleAssignments

type VirtualMachineRoleAssignments struct {
	RoleAssignments  []VirtualMachineRoleAssignment `json:"roleAssignments"`
	VirtualMachineId string                         `json:"virtualMachineId"`
}

type VirtualMachineUserAccessAdmin

type VirtualMachineUserAccessAdmin struct {
	UserAccessAdmin  azure.RoleAssignment `json:"userAccessAdmin"`
	VirtualMachineId string               `json:"virtualMachineId"`
}

type VirtualMachineUserAccessAdmins

type VirtualMachineUserAccessAdmins struct {
	UserAccessAdmins []VirtualMachineUserAccessAdmin `json:"userAccessAdmins"`
	VirtualMachineId string                          `json:"virtualMachineId"`
}

type VirtualMachineVMContributor

type VirtualMachineVMContributor struct {
	VMContributor    azure.RoleAssignment `json:"vmContributor"`
	VirtualMachineId string               `json:"virtualMachineId"`
}

type VirtualMachineVMContributors

type VirtualMachineVMContributors struct {
	VMContributors   []VirtualMachineVMContributor `json:"vmContributors"`
	VirtualMachineId string                        `json:"virtualMachineId"`
}

type WebApp

type WebApp struct {
	azure.WebApp
	SubscriptionId    string `json:"subscriptionId"`
	ResourceGroupId   string `json:"resourceGroupId"`
	ResourceGroupName string `json:"resourceGroupName"`
	TenantId          string `json:"tenantId"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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