models

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivateServiceRequest added in v0.3.0

type ActivateServiceRequest struct {
	ID int `json:"id"`
}

type ActivateUserRequest added in v0.3.0

type ActivateUserRequest struct {
	ID int `json:"id"`
}

type AddCredentialForTargetRequest

type AddCredentialForTargetRequest struct {
	ID        int     `json:"id"`
	Principal string  `json:"principal"`
	Secret    string  `json:"secret"`
	Kind      *string `json:"kind"`
}

type AddCredentialForTargetsRequest added in v0.3.0

type AddCredentialForTargetsRequest struct {
	Ids       []int   `json:"ids"`
	Principal string  `json:"principal"`
	Secret    string  `json:"secret"`
	Kind      *string `json:"kind"`
}

type ApplyTagRequest

type ApplyTagRequest struct {
	TagID int `json:"tagID"`
	EntID int `json:"entID"`
}

type ApplyTagToTargetsRequest added in v0.3.0

type ApplyTagToTargetsRequest struct {
	TagID   int   `json:"tagID"`
	Targets []int `json:"targets"`
}

type ChangeNameRequest added in v0.3.0

type ChangeNameRequest struct {
	Name string `json:"name"`
}

type ClaimTasksRequest

type ClaimTasksRequest struct {
	MachineUUID *string `json:"machineUUID"`
	PrimaryIP   *string `json:"primaryIP"`
	Hostname    *string `json:"hostname"`
	PrimaryMac  *string `json:"primaryMAC"`
	SessionID   *string `json:"sessionID"`
}

type CreateJobRequest

type CreateJobRequest struct {
	Name      string  `json:"name"`
	Content   string  `json:"content"`
	SessionID *string `json:"sessionID"`
	Stage     *bool   `json:"stage"`
	Targets   []int   `json:"targets"`
	Tags      []int   `json:"tags"`
	Prev      *int    `json:"prev"`
}

type CreateLinkRequest added in v0.2.3

type CreateLinkRequest struct {
	Alias          string     `json:"alias"`
	ExpirationTime *time.Time `json:"expirationTime"`
	Clicks         *int       `json:"clicks"`
	File           int        `json:"file"`
}

type CreateTagRequest

type CreateTagRequest struct {
	Name string `json:"name"`
}

type CreateTargetRequest

type CreateTargetRequest struct {
	Name      string `json:"name"`
	PrimaryIP string `json:"primaryIP"`
	Os        string `json:"os"`
	Tags      []int  `json:"tags"`
}

type DeactivateServiceRequest added in v0.3.0

type DeactivateServiceRequest struct {
	ID int `json:"id"`
}

type DeactivateUserRequest added in v0.3.0

type DeactivateUserRequest struct {
	ID int `json:"id"`
}

type DeleteCredentialRequest added in v0.4.0

type DeleteCredentialRequest struct {
	ID int `json:"id"`
}

type DeleteTargetRequest

type DeleteTargetRequest struct {
	ID int `json:"id"`
}

type EmptyRequest added in v0.4.1

type EmptyRequest struct {
	Mock *bool `json:"mock"`
}

type FailCredentialRequest

type FailCredentialRequest struct {
	ID int `json:"id"`
}

type Filter added in v0.2.2

type Filter struct {
	Offset *int    `json:"offset"`
	Limit  *int    `json:"limit"`
	Search *string `json:"search"`
}

type Identity added in v0.4.0

type Identity interface {
	IsIdentity()
}

type LikeEventRequest added in v0.3.0

type LikeEventRequest struct {
	ID int `json:"id"`
}

type MakeAdminRequest added in v0.3.0

type MakeAdminRequest struct {
	ID int `json:"id"`
}

type QueueJobRequest added in v0.3.0

type QueueJobRequest struct {
	ID int `json:"id"`
}

type RemoveAdminRequest added in v0.3.0

type RemoveAdminRequest struct {
	ID int `json:"id"`
}

type RemoveTagRequest

type RemoveTagRequest struct {
	TagID int `json:"tagID"`
	EntID int `json:"entID"`
}

type SetLinkFieldsRequest added in v0.2.3

type SetLinkFieldsRequest struct {
	ID             int        `json:"id"`
	Alias          *string    `json:"alias"`
	ExpirationTime *time.Time `json:"ExpirationTime"`
	Clicks         *int       `json:"clicks"`
}

type SetServiceConfigRequest added in v0.4.0

type SetServiceConfigRequest struct {
	ID     int     `json:"id"`
	Config *string `json:"config"`
}

type SetTargetFieldsRequest

type SetTargetFieldsRequest struct {
	ID          int     `json:"id"`
	Name        *string `json:"name"`
	Os          *string `json:"os"`
	MachineUUID *string `json:"machineUUID"`
	PrimaryIP   *string `json:"primaryIP"`
	PublicIP    *string `json:"publicIP"`
	PrimaryMac  *string `json:"primaryMAC"`
	Hostname    *string `json:"hostname"`
}

type SubmitTaskResultRequest

type SubmitTaskResultRequest struct {
	ID            int        `json:"id"`
	Output        *string    `json:"output"`
	Error         *string    `json:"error"`
	ExecStartTime *time.Time `json:"execStartTime"`
	ExecStopTime  *time.Time `json:"execStopTime"`
}

Jump to

Keyboard shortcuts

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