Documentation ¶
Index ¶
- func DeleteWorkbench(ctx context.Context, client api.Client, id string) (string, error)
- type Capabilities
- type Capability
- type CapabilityNotFoundError
- type CaseTemplate
- func (c CaseTemplate) CreateQueryString(customAttributes string) string
- func (c CaseTemplate) CreateResponseField() string
- func (c CaseTemplate) DefaultProperties() string
- func (c CaseTemplate) DeleteQueryString() string
- func (c CaseTemplate) DeleteResponseField() string
- func (c CaseTemplate) ListQueryString(customAttributes string) string
- func (c CaseTemplate) ListResponseField() string
- func (c CaseTemplate) ReadQueryString(customAttributes string) string
- func (c CaseTemplate) ReadResponseField() string
- type CaseTemplateAddInput
- type Group
- func (g Group) AssignMarkingDefinition(ctx context.Context, client api.Client, markingDefinitionID string) (map[string]any, error)
- func (g Group) AssignMaxConfidenceLevel(ctx context.Context, client api.Client, confidenceLevel int) (map[string]any, error)
- func (g Group) AssignRole(ctx context.Context, client api.Client, roleID string) (map[string]any, error)
- func (g Group) CreateQueryString(customAttributes string) string
- func (g Group) CreateResponseField() string
- func (g Group) DefaultProperties() string
- func (g Group) DeleteQueryString() string
- func (g Group) DeleteResponseField() string
- func (g Group) EditResponseField() string
- func (g Group) ListQueryString(customAttributes string) string
- func (g Group) ListResponseField() string
- func (g Group) ReadQueryString(customAttributes string) string
- func (g Group) ReadResponseField() string
- func (g Group) SetOption(ctx context.Context, client api.Client, option GroupOption, value bool) (map[string]any, error)
- func (g Group) UnassignMarkingDefinition(ctx context.Context, client api.Client, markingDefinitionID string) (map[string]any, error)
- func (g Group) UnassignRole(ctx context.Context, client api.Client, roleID string) (map[string]any, error)
- type GroupAddInput
- type GroupOption
- type Role
- func (r Role) AssignCapability(ctx context.Context, client api.Client, capabilityID string) (map[string]any, error)
- func (r Role) CreateQueryString(customAttributes string) string
- func (r Role) CreateResponseField() string
- func (r Role) DefaultProperties() string
- func (r Role) DeleteQueryString() string
- func (r Role) DeleteResponseField() string
- func (r Role) EditResponseField() string
- func (r Role) ListQueryString(customAttributes string) string
- func (r Role) ListResponseField() string
- func (r Role) ReadQueryString(customAttributes string) string
- func (r Role) ReadResponseField() string
- func (r Role) UnassignCapability(ctx context.Context, client api.Client, capabilityID string) (map[string]any, error)
- type RoleAddInput
- type StatusTemplate
- func (s StatusTemplate) CreateQueryString(customAttributes string) string
- func (s StatusTemplate) CreateResponseField() string
- func (s StatusTemplate) DefaultProperties() string
- func (s StatusTemplate) DeleteQueryString() string
- func (s StatusTemplate) DeleteResponseField() string
- func (s StatusTemplate) ListQueryString(customAttributes string) string
- func (s StatusTemplate) ListResponseField() string
- func (s StatusTemplate) ReadQueryString(customAttributes string) string
- func (s StatusTemplate) ReadResponseField() string
- type StatusTemplateAddInput
- type SubType
- func (s SubType) DefaultProperties() string
- func (s SubType) DeleteQueryString() string
- func (s SubType) DeleteResponseField() string
- func (s SubType) EditResponseField() string
- func (s SubType) ListQueryString(customAttributes string) string
- func (s SubType) ListResponseField() string
- func (s SubType) ReadQueryString(customAttributes string) string
- func (s SubType) ReadResponseField() string
- func (s SubType) SetStatusInWorkFlow(ctx context.Context, client api.Client, workflowType, statusTemplateID string, ...) (map[string]any, error)
- func (s SubType) UnsetStatusInWorkFlow(ctx context.Context, client api.Client, workflowType, statusTemplateID string) (map[string]any, error)
- type TaskTemplate
- func (t TaskTemplate) CreateQueryString(customAttributes string) string
- func (t TaskTemplate) CreateResponseField() string
- func (t TaskTemplate) DefaultProperties() string
- func (t TaskTemplate) DeleteQueryString() string
- func (t TaskTemplate) DeleteResponseField() string
- func (t TaskTemplate) ListQueryString(customAttributes string) string
- func (t TaskTemplate) ListResponseField() string
- func (t TaskTemplate) ReadQueryString(customAttributes string) string
- func (t TaskTemplate) ReadResponseField() string
- type TaskTemplateAddInput
- type User
- func (u User) AssignGroup(ctx context.Context, client api.Client, groupID string) (map[string]any, error)
- func (u User) CreateQueryString(customAttributes string) string
- func (u User) CreateResponseField() string
- func (u User) DefaultProperties() string
- func (u User) DeleteQueryString() string
- func (u User) DeleteResponseField() string
- func (u User) EditResponseField() string
- func (u User) ListQueryString(customAttributes string) string
- func (u User) ListResponseField() string
- func (u User) ReadQueryString(customAttributes string) string
- func (u User) ReadResponseField() string
- func (u User) UnassignGroup(ctx context.Context, client api.Client, groupID string) (map[string]any, error)
- type UserAddInput
- type Workbench
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteWorkbench ¶
DeleteWorkbench removes an active workbench from the server. id is typically a path, as returned by CreateWorkbench e.g. "import/pending/ExempleWorkbench.json".
Types ¶
type Capabilities ¶
type Capabilities string
const ( CapabilitiesConnectorAPI Capabilities = "CONNECTORAPI" CapabilitiesKnowledge Capabilities = "KNOWLEDGE" CapabilitiesKnowledgeKNUpdate Capabilities = "KNOWLEDGE_KNUPDATE" CapabilitiesKnowledgeKNParticipate Capabilities = "KNOWLEDGE_KNPARTICIPATE" CapabilitiesKnowledgeKNUpdateKNDelete Capabilities = "KNOWLEDGE_KNUPDATE_KNDELETE" CapabilitiesKnowledgeKNUpdateKNOrgAreStrict Capabilities = "KNOWLEDGE_KNUPDATE_KNORGARESTRICT" CapabilitiesKnowledgeKNUpdateKNManageAuthMembers Capabilities = "KNOWLEDGE_KNUPDATE_KNMANAGEAUTHMEMBERS" CapabilitiesKnowledgeKNUpload Capabilities = "KNOWLEDGE_KNUPLOAD" CapabilitiesKnowledgeKNAskImport Capabilities = "KNOWLEDGE_KNASKIMPORT" CapabilitiesKnowledgeKNGetExport Capabilities = "KNOWLEDGE_KNGETEXPORT" CapabilitiesKnowledgeKNGetExportKNAskExport Capabilities = "KNOWLEDGE_KNGETEXPORT_KNASKEXPORT" CapabilitiesKnowledgeKNEnrichment Capabilities = "KNOWLEDGE_KNENRICHMENT" CapabilitiesExplore Capabilities = "EXPLORE" CapabilitiesExploreEXUpdate Capabilities = "EXPLORE_EXUPDATE" CapabilitiesExploreEXUpdateEXDelete Capabilities = "EXPLORE_EXUPDATE_EXDELETE" CapabilitiesExploreEXUpdatePublish Capabilities = "EXPLORE_EXUPDATE_PUBLISH" CapabilitiesModules Capabilities = "MODULES" CapabilitiesModulesModManage Capabilities = "MODULES_MODMANAGE" CapabilitiesSettings Capabilities = "SETTINGS" CapabilitiesSettingsSetAccesses Capabilities = "SETTINGS_SETACCESSES" CapabilitiesSettingsSetMarkings Capabilities = "SETTINGS_SETMARKINGS" CapabilitiesSettingsSetLables Capabilities = "SETTINGS_SETLABELS" CapabilitiesTAXIIAPISetCollections Capabilities = "TAXIIAPI_SETCOLLECTIONS" CapabilitiesTAXIIAPISetCSVMappers Capabilities = "TAXIIAPI_SETCSVMAPPERS" CapabilitiesVirtualOrganizationAdmin Capabilities = "VIRTUAL_ORGANIZATION_ADMIN" )
type Capability ¶
type Capability struct {
graphql.Capability `gocti:",squash"`
}
func (Capability) DefaultProperties ¶
func (c Capability) DefaultProperties() string
func (Capability) IDsByNames ¶
func (c Capability) IDsByNames(ctx context.Context, client api.Client, names []Capabilities) ([]string, error)
func (Capability) ListQueryString ¶
func (c Capability) ListQueryString(customAttributes string) string
func (Capability) ListResponseField ¶
func (c Capability) ListResponseField() string
type CapabilityNotFoundError ¶
type CapabilityNotFoundError struct {
// contains filtered or unexported fields
}
func (CapabilityNotFoundError) Error ¶
func (err CapabilityNotFoundError) Error() string
type CaseTemplate ¶
type CaseTemplate struct {
graphql.CaseTemplate `gocti:",squash"`
}
func (CaseTemplate) CreateQueryString ¶
func (c CaseTemplate) CreateQueryString(customAttributes string) string
func (CaseTemplate) CreateResponseField ¶
func (c CaseTemplate) CreateResponseField() string
func (CaseTemplate) DefaultProperties ¶
func (c CaseTemplate) DefaultProperties() string
func (CaseTemplate) DeleteQueryString ¶
func (c CaseTemplate) DeleteQueryString() string
func (CaseTemplate) DeleteResponseField ¶
func (c CaseTemplate) DeleteResponseField() string
func (CaseTemplate) ListQueryString ¶
func (c CaseTemplate) ListQueryString(customAttributes string) string
func (CaseTemplate) ListResponseField ¶
func (c CaseTemplate) ListResponseField() string
func (CaseTemplate) ReadQueryString ¶
func (c CaseTemplate) ReadQueryString(customAttributes string) string
func (CaseTemplate) ReadResponseField ¶
func (c CaseTemplate) ReadResponseField() string
type CaseTemplateAddInput ¶
type CaseTemplateAddInput struct { // CaseTemplateAddInput Name string `gocti:"name" json:"name,omitempty"` Description string `gocti:"description" json:"description,omitempty"` Created *time.Time `gocti:"created" json:"created,omitempty"` Tasks []string `gocti:"tasks" json:"tasks,omitempty"` }
CaseTemplateAddInput represents a GraphQL INPUT_OBJECT Some fields from the OpenCTI schema may be missing (See the examples for ways to expand an existing type).
type Group ¶
func (Group) AssignMarkingDefinition ¶
func (Group) AssignMaxConfidenceLevel ¶
func (Group) AssignRole ¶
func (Group) CreateQueryString ¶
func (Group) CreateResponseField ¶
func (Group) DefaultProperties ¶
func (Group) DeleteQueryString ¶
func (Group) DeleteResponseField ¶
func (Group) EditResponseField ¶
func (Group) ListQueryString ¶
func (Group) ListResponseField ¶
func (Group) ReadQueryString ¶
func (Group) ReadResponseField ¶
func (Group) UnassignMarkingDefinition ¶ added in v0.3.0
type GroupAddInput ¶
type GroupAddInput struct { // GroupAddInput Name string `gocti:"name" json:"name,omitempty"` Description string `gocti:"description" json:"description,omitempty"` DefaultAssignation bool `gocti:"default_assignation" json:"default_assignation,omitempty"` NoCreators bool `gocti:"no_creators" json:"no_creators,omitempty"` RestrictDelete bool `gocti:"restrict_delete" json:"restrict_delete,omitempty"` AutoNewMarking bool `gocti:"auto_new_marking" json:"auto_new_marking,omitempty"` ClientMutationID string `gocti:"clientMutationId" json:"clientMutationId,omitempty"` GroupConfidenceLevel graphql.ConfidenceLevelInput `gocti:"group_confidence_level" json:"group_confidence_level,omitempty"` }
GroupAddInput represents a GraphQL INPUT_OBJECT Some fields from the OpenCTI schema may be missing (See the examples for ways to expand an existing type).
type GroupOption ¶
type GroupOption string
const ( GroupOptionAutoNewMarking GroupOption = "auto_new_marking" GroupOptionDefaultAssignation GroupOption = "default_assignation" )
type Role ¶
func (Role) AssignCapability ¶
func (Role) CreateQueryString ¶
func (Role) CreateResponseField ¶
func (Role) DefaultProperties ¶
func (Role) DeleteQueryString ¶
func (Role) DeleteResponseField ¶
func (Role) EditResponseField ¶
func (Role) ListQueryString ¶
func (Role) ListResponseField ¶
func (Role) ReadQueryString ¶
func (Role) ReadResponseField ¶
type RoleAddInput ¶
type RoleAddInput struct { // RoleAddInput Name string `gocti:"name" json:"name,omitempty"` Description string `gocti:"description" json:"description,omitempty"` ClientMutationID string `gocti:"clientMutationId" json:"clientMutationId,omitempty"` }
RoleAddInput represents a GraphQL INPUT_OBJECT Some fields from the OpenCTI schema may be missing (See the examples for ways to expand an existing type).
type StatusTemplate ¶
type StatusTemplate struct {
graphql.StatusTemplate `gocti:",squash"`
}
func (StatusTemplate) CreateQueryString ¶
func (s StatusTemplate) CreateQueryString(customAttributes string) string
func (StatusTemplate) CreateResponseField ¶
func (s StatusTemplate) CreateResponseField() string
func (StatusTemplate) DefaultProperties ¶
func (s StatusTemplate) DefaultProperties() string
func (StatusTemplate) DeleteQueryString ¶
func (s StatusTemplate) DeleteQueryString() string
func (StatusTemplate) DeleteResponseField ¶
func (s StatusTemplate) DeleteResponseField() string
func (StatusTemplate) ListQueryString ¶
func (s StatusTemplate) ListQueryString(customAttributes string) string
func (StatusTemplate) ListResponseField ¶
func (s StatusTemplate) ListResponseField() string
func (StatusTemplate) ReadQueryString ¶
func (s StatusTemplate) ReadQueryString(customAttributes string) string
func (StatusTemplate) ReadResponseField ¶
func (s StatusTemplate) ReadResponseField() string
type StatusTemplateAddInput ¶
type StatusTemplateAddInput struct { // StatusTemplateAddInput Name string `gocti:"name" json:"name,omitempty"` Color string `gocti:"color" json:"color,omitempty"` }
StatusTemplateAddInput represents a GraphQL INPUT_OBJECT Some fields from the OpenCTI schema may be missing (See the examples for ways to expand an existing type).
type SubType ¶
func (SubType) DefaultProperties ¶
func (SubType) DeleteQueryString ¶
func (SubType) DeleteResponseField ¶
func (SubType) EditResponseField ¶
func (SubType) ListQueryString ¶
func (SubType) ListResponseField ¶
func (SubType) ReadQueryString ¶
func (SubType) ReadResponseField ¶
func (SubType) SetStatusInWorkFlow ¶
type TaskTemplate ¶
type TaskTemplate struct {
graphql.TaskTemplate `gocti:",squash"`
}
func (TaskTemplate) CreateQueryString ¶
func (t TaskTemplate) CreateQueryString(customAttributes string) string
func (TaskTemplate) CreateResponseField ¶
func (t TaskTemplate) CreateResponseField() string
func (TaskTemplate) DefaultProperties ¶
func (t TaskTemplate) DefaultProperties() string
func (TaskTemplate) DeleteQueryString ¶
func (t TaskTemplate) DeleteQueryString() string
func (TaskTemplate) DeleteResponseField ¶
func (t TaskTemplate) DeleteResponseField() string
func (TaskTemplate) ListQueryString ¶
func (t TaskTemplate) ListQueryString(customAttributes string) string
func (TaskTemplate) ListResponseField ¶
func (t TaskTemplate) ListResponseField() string
func (TaskTemplate) ReadQueryString ¶
func (t TaskTemplate) ReadQueryString(customAttributes string) string
func (TaskTemplate) ReadResponseField ¶
func (t TaskTemplate) ReadResponseField() string
type TaskTemplateAddInput ¶
type TaskTemplateAddInput struct { // TaskTemplateAddInput Name string `gocti:"name" json:"name,omitempty"` Description string `gocti:"description" json:"description,omitempty"` }
TaskTemplateAddInput represents a GraphQL INPUT_OBJECT Some fields from the OpenCTI schema may be missing (See the examples for ways to expand an existing type).
type User ¶
func (User) AssignGroup ¶
func (User) CreateQueryString ¶
func (User) CreateResponseField ¶
func (User) DefaultProperties ¶
func (User) DeleteQueryString ¶
func (User) DeleteResponseField ¶
func (User) EditResponseField ¶
func (User) ListQueryString ¶
func (User) ListResponseField ¶
func (User) ReadQueryString ¶
func (User) ReadResponseField ¶
type UserAddInput ¶
type UserAddInput struct { // UserAddInput UserEmail string `gocti:"user_email" json:"user_email,omitempty"` Name string `gocti:"name" json:"name,omitempty"` Password string `gocti:"password" json:"password,omitempty"` Firstname string `gocti:"firstname" json:"firstname,omitempty"` Lastname string `gocti:"lastname" json:"lastname,omitempty"` Description string `gocti:"description" json:"description,omitempty"` Language string `gocti:"language" json:"language,omitempty"` Theme string `gocti:"theme" json:"theme,omitempty"` ObjectOrganization []string `gocti:"objectOrganization" json:"objectOrganization,omitempty"` AccountStatus string `gocti:"account_status" json:"account_status,omitempty"` AccountLockAfterDate *time.Time `gocti:"account_lock_after_date" json:"account_lock_after_date,omitempty"` UnitSystem string `gocti:"unit_system" json:"unit_system,omitempty"` MonochromeLabels bool `gocti:"monochrome_labels" json:"monochrome_labels,omitempty"` Groups []string `gocti:"groups" json:"groups,omitempty"` UserConfidenceLevel graphql.ConfidenceLevelInput `gocti:"user_confidence_level" json:"user_confidence_level,omitempty"` }
UserAddInput represents a GraphQL INPUT_OBJECT Some fields from the OpenCTI schema may be missing (See the examples for ways to expand an existing type).
type Workbench ¶
type Workbench struct { ID string `gocti:"id"` Name string `gocti:"name"` Size int `gocti:"size"` LastModified time.Time `gocti:"lastModified"` UploadStatus graphql.State `gocti:"uploadStatus"` URL string `gocti:"-"` }
func CreateWorkbench ¶
func CreateWorkbench( ctx context.Context, client api.Client, file api.File, errOnExisting bool, ) (Workbench, error)
CreateWorkbench creates a new Workbench on the server based on the provided file. The api.File struct must contain all Name, Data, and MIME-type. Workbench name will match the file name. File Data is typically a valid stix bundle formatted as JSON.