Documentation ¶
Index ¶
- Variables
- type Config
- type OpenCTIAPIClient
- func (client *OpenCTIAPIClient) CreateAttackPattern(ctx context.Context, customAttributes string, ...) (entity.AttackPattern, error)
- func (client *OpenCTIAPIClient) CreateCampaign(ctx context.Context, customAttributes string, input entity.CampaignAddInput) (entity.Campaign, error)
- func (client *OpenCTIAPIClient) CreateCaseIncident(ctx context.Context, customAttributes string, ...) (entity.CaseIncident, error)
- func (client *OpenCTIAPIClient) CreateCaseRfi(ctx context.Context, customAttributes string, input entity.CaseRfiAddInput) (entity.CaseRfi, error)
- func (client *OpenCTIAPIClient) CreateCaseRft(ctx context.Context, customAttributes string, input entity.CaseRftAddInput) (entity.CaseRft, error)
- func (client *OpenCTIAPIClient) CreateCaseTemplate(ctx context.Context, customAttributes string, ...) (system.CaseTemplate, error)
- func (client *OpenCTIAPIClient) CreateChannel(ctx context.Context, customAttributes string, input entity.ChannelAddInput) (entity.Channel, error)
- func (client *OpenCTIAPIClient) CreateCourseOfAction(ctx context.Context, customAttributes string, ...) (entity.CourseOfAction, error)
- func (client *OpenCTIAPIClient) CreateDataComponent(ctx context.Context, customAttributes string, ...) (entity.DataComponent, error)
- func (client *OpenCTIAPIClient) CreateDataSource(ctx context.Context, customAttributes string, input entity.DataSourceAddInput) (entity.DataSource, error)
- func (client *OpenCTIAPIClient) CreateEvent(ctx context.Context, customAttributes string, input entity.EventAddInput) (entity.Event, error)
- func (client *OpenCTIAPIClient) CreateExternalReference(ctx context.Context, customAttributes string, ...) (entity.ExternalReference, error)
- func (client *OpenCTIAPIClient) CreateFeedback(ctx context.Context, customAttributes string, input entity.FeedbackAddInput) (entity.Feedback, error)
- func (client *OpenCTIAPIClient) CreateGroup(ctx context.Context, customAttributes string, input system.GroupAddInput) (system.Group, error)
- func (client *OpenCTIAPIClient) CreateGrouping(ctx context.Context, customAttributes string, input entity.GroupingAddInput) (entity.Grouping, error)
- func (client *OpenCTIAPIClient) CreateIdentity(ctx context.Context, customAttributes string, input entity.IdentityAddInput) (entity.Identity, error)
- func (client *OpenCTIAPIClient) CreateIncident(ctx context.Context, customAttributes string, input entity.IncidentAddInput) (entity.Incident, error)
- func (client *OpenCTIAPIClient) CreateIndicator(ctx context.Context, customAttributes string, input entity.IndicatorAddInput) (entity.Indicator, error)
- func (client *OpenCTIAPIClient) CreateInfrastructure(ctx context.Context, customAttributes string, ...) (entity.Infrastructure, error)
- func (client *OpenCTIAPIClient) CreateIntrusionSet(ctx context.Context, customAttributes string, ...) (entity.IntrusionSet, error)
- func (client *OpenCTIAPIClient) CreateKillChainPhase(ctx context.Context, customAttributes string, ...) (entity.KillChainPhase, error)
- func (client *OpenCTIAPIClient) CreateLabel(ctx context.Context, customAttributes string, input entity.LabelAddInput) (entity.Label, error)
- func (client *OpenCTIAPIClient) CreateLanguage(ctx context.Context, customAttributes string, input entity.LanguageAddInput) (entity.Language, error)
- func (client *OpenCTIAPIClient) CreateLocation(ctx context.Context, customAttributes string, input entity.LocationAddInput) (entity.Location, error)
- func (client *OpenCTIAPIClient) CreateMalware(ctx context.Context, customAttributes string, input entity.MalwareAddInput) (entity.Malware, error)
- func (client *OpenCTIAPIClient) CreateMalwareAnalysis(ctx context.Context, customAttributes string, ...) (entity.MalwareAnalysis, error)
- func (client *OpenCTIAPIClient) CreateMarkingDefinition(ctx context.Context, customAttributes string, ...) (entity.MarkingDefinition, error)
- func (client *OpenCTIAPIClient) CreateNarrative(ctx context.Context, customAttributes string, input entity.NarrativeAddInput) (entity.Narrative, error)
- func (client *OpenCTIAPIClient) CreateNote(ctx context.Context, customAttributes string, input entity.NoteAddInput) (entity.Note, error)
- func (client *OpenCTIAPIClient) CreateObservedData(ctx context.Context, customAttributes string, ...) (entity.ObservedData, error)
- func (client *OpenCTIAPIClient) CreateOpinion(ctx context.Context, customAttributes string, input entity.OpinionAddInput) (entity.Opinion, error)
- func (client *OpenCTIAPIClient) CreateReport(ctx context.Context, customAttributes string, input entity.ReportAddInput) (entity.Report, error)
- func (client *OpenCTIAPIClient) CreateRole(ctx context.Context, customAttributes string, input system.RoleAddInput) (system.Role, error)
- func (client *OpenCTIAPIClient) CreateStatusTemplate(ctx context.Context, customAttributes string, ...) (system.StatusTemplate, error)
- func (client *OpenCTIAPIClient) CreateStixCoreRelationship(ctx context.Context, customAttributes string, ...) (entity.StixCoreRelationship, error)
- func (client *OpenCTIAPIClient) CreateStixCyberObservable(ctx context.Context, customAttributes string, ...) (entity.StixCyberObservable, error)
- func (client *OpenCTIAPIClient) CreateStixDomainObject(ctx context.Context, customAttributes string, ...) (entity.StixDomainObject, error)
- func (client *OpenCTIAPIClient) CreateTask(ctx context.Context, customAttributes string, input entity.TaskAddInput) (entity.Task, error)
- func (client *OpenCTIAPIClient) CreateTaskTemplate(ctx context.Context, customAttributes string, ...) (system.TaskTemplate, error)
- func (client *OpenCTIAPIClient) CreateThreatActorGroup(ctx context.Context, customAttributes string, ...) (entity.ThreatActorGroup, error)
- func (client *OpenCTIAPIClient) CreateThreatActorIndividual(ctx context.Context, customAttributes string, ...) (entity.ThreatActorIndividual, error)
- func (client *OpenCTIAPIClient) CreateTool(ctx context.Context, customAttributes string, input entity.ToolAddInput) (entity.Tool, error)
- func (client *OpenCTIAPIClient) CreateUser(ctx context.Context, customAttributes string, input system.UserAddInput) (system.User, error)
- func (client *OpenCTIAPIClient) CreateVocabulary(ctx context.Context, customAttributes string, input entity.VocabularyAddInput) (entity.Vocabulary, error)
- func (client *OpenCTIAPIClient) CreateVulnerability(ctx context.Context, customAttributes string, ...) (entity.Vulnerability, error)
- func (client *OpenCTIAPIClient) DefaultOrderBy() (string, bool)
- func (client *OpenCTIAPIClient) DefaultOrderMode() (string, bool)
- func (client *OpenCTIAPIClient) DefaultPageSize() (int, bool)
- func (client *OpenCTIAPIClient) DeleteAttackPattern(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteCampaign(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteCaseIncident(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteCaseRfi(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteCaseRft(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteCaseTemplate(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteChannel(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteCourseOfAction(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteDataComponent(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteDataSource(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteEvent(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteExternalReference(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteFeedback(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteGroup(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteGrouping(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteIdentity(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteIncident(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteIndicator(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteInfrastructure(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteIntrusionSet(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteKillChainPhase(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteLabel(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteLanguage(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteLocation(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteMalware(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteMalwareAnalysis(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteMarkingDefinition(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteNarrative(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteNote(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteObservedData(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteOpinion(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteReport(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteRole(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteStatusTemplate(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteStixCoreObject(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteStixCoreRelationship(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteStixCyberObservable(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteStixDomainObject(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteSubType(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteTask(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteTaskTemplate(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteThreatActorGroup(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteThreatActorIndividual(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteTool(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteUser(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteVocabulary(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) DeleteVulnerability(ctx context.Context, id string) (string, error)
- func (client *OpenCTIAPIClient) HealthCheck(ctx context.Context) error
- func (client *OpenCTIAPIClient) Impersonate(ctx context.Context, username string) error
- func (client *OpenCTIAPIClient) ListAttackPatterns(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.AttackPattern, error)
- func (client *OpenCTIAPIClient) ListCampaigns(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Campaign, error)
- func (client *OpenCTIAPIClient) ListCapabilities(ctx context.Context, customAttributes string, getAll bool, ...) ([]system.Capability, error)
- func (client *OpenCTIAPIClient) ListCaseIncidents(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.CaseIncident, error)
- func (client *OpenCTIAPIClient) ListCaseRfis(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.CaseRfi, error)
- func (client *OpenCTIAPIClient) ListCaseRfts(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.CaseRft, error)
- func (client *OpenCTIAPIClient) ListCaseTemplates(ctx context.Context, customAttributes string, getAll bool, ...) ([]system.CaseTemplate, error)
- func (client *OpenCTIAPIClient) ListChannels(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Channel, error)
- func (client *OpenCTIAPIClient) ListCoursesOfAction(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.CourseOfAction, error)
- func (client *OpenCTIAPIClient) ListDataComponents(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.DataComponent, error)
- func (client *OpenCTIAPIClient) ListDataSources(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.DataSource, error)
- func (client *OpenCTIAPIClient) ListEvents(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Event, error)
- func (client *OpenCTIAPIClient) ListExternalReferences(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.ExternalReference, error)
- func (client *OpenCTIAPIClient) ListFeedbacks(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Feedback, error)
- func (client *OpenCTIAPIClient) ListGroupings(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Grouping, error)
- func (client *OpenCTIAPIClient) ListGroups(ctx context.Context, customAttributes string, getAll bool, ...) ([]system.Group, error)
- func (client *OpenCTIAPIClient) ListIdentities(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Identity, error)
- func (client *OpenCTIAPIClient) ListIncidents(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Incident, error)
- func (client *OpenCTIAPIClient) ListIndicators(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Indicator, error)
- func (client *OpenCTIAPIClient) ListInfrastructures(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Infrastructure, error)
- func (client *OpenCTIAPIClient) ListIntrusionSets(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.IntrusionSet, error)
- func (client *OpenCTIAPIClient) ListKillChainPhases(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.KillChainPhase, error)
- func (client *OpenCTIAPIClient) ListLabels(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Label, error)
- func (client *OpenCTIAPIClient) ListLanguages(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Language, error)
- func (client *OpenCTIAPIClient) ListLocations(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Location, error)
- func (client *OpenCTIAPIClient) ListMalwareAnalyses(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.MalwareAnalysis, error)
- func (client *OpenCTIAPIClient) ListMalwares(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Malware, error)
- func (client *OpenCTIAPIClient) ListMarkingDefinitions(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.MarkingDefinition, error)
- func (client *OpenCTIAPIClient) ListNarratives(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Narrative, error)
- func (client *OpenCTIAPIClient) ListNotes(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Note, error)
- func (client *OpenCTIAPIClient) ListObservedDatas(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.ObservedData, error)
- func (client *OpenCTIAPIClient) ListOpinions(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Opinion, error)
- func (client *OpenCTIAPIClient) ListReports(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Report, error)
- func (client *OpenCTIAPIClient) ListRoles(ctx context.Context, customAttributes string, getAll bool, ...) ([]system.Role, error)
- func (client *OpenCTIAPIClient) ListStatusTemplates(ctx context.Context, customAttributes string, getAll bool, ...) ([]system.StatusTemplate, error)
- func (client *OpenCTIAPIClient) ListStixCoreObjects(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.StixCoreObject, error)
- func (client *OpenCTIAPIClient) ListStixCoreRelationships(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.StixCoreRelationship, error)
- func (client *OpenCTIAPIClient) ListStixCyberObservables(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.StixCyberObservable, error)
- func (client *OpenCTIAPIClient) ListStixDomainObjects(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.StixDomainObject, error)
- func (client *OpenCTIAPIClient) ListSubTypes(ctx context.Context, customAttributes string, getAll bool, ...) ([]system.SubType, error)
- func (client *OpenCTIAPIClient) ListTaskTemplates(ctx context.Context, customAttributes string, getAll bool, ...) ([]system.TaskTemplate, error)
- func (client *OpenCTIAPIClient) ListTasks(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Task, error)
- func (client *OpenCTIAPIClient) ListThreatActorGroups(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.ThreatActorGroup, error)
- func (client *OpenCTIAPIClient) ListThreatActorIndividuals(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.ThreatActorIndividual, error)
- func (client *OpenCTIAPIClient) ListThreatActors(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.ThreatActor, error)
- func (client *OpenCTIAPIClient) ListTools(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Tool, error)
- func (client *OpenCTIAPIClient) ListUsers(ctx context.Context, customAttributes string, getAll bool, ...) ([]system.User, error)
- func (client *OpenCTIAPIClient) ListVocabularies(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Vocabulary, error)
- func (client *OpenCTIAPIClient) ListVulnerabilities(ctx context.Context, customAttributes string, getAll bool, ...) ([]entity.Vulnerability, error)
- func (client *OpenCTIAPIClient) Logger() *slog.Logger
- func (client *OpenCTIAPIClient) Query(ctx context.Context, query string, variables map[string]any) (map[string]any, error)
- func (client *OpenCTIAPIClient) ReadAttackPattern(ctx context.Context, customAttributes, id string) (entity.AttackPattern, error)
- func (client *OpenCTIAPIClient) ReadCampaign(ctx context.Context, customAttributes, id string) (entity.Campaign, error)
- func (client *OpenCTIAPIClient) ReadCaseIncident(ctx context.Context, customAttributes, id string) (entity.CaseIncident, error)
- func (client *OpenCTIAPIClient) ReadCaseRfi(ctx context.Context, customAttributes, id string) (entity.CaseRfi, error)
- func (client *OpenCTIAPIClient) ReadCaseRft(ctx context.Context, customAttributes, id string) (entity.CaseRft, error)
- func (client *OpenCTIAPIClient) ReadCaseTemplate(ctx context.Context, customAttributes, id string) (system.CaseTemplate, error)
- func (client *OpenCTIAPIClient) ReadChannel(ctx context.Context, customAttributes, id string) (entity.Channel, error)
- func (client *OpenCTIAPIClient) ReadCourseOfAction(ctx context.Context, customAttributes, id string) (entity.CourseOfAction, error)
- func (client *OpenCTIAPIClient) ReadDataComponent(ctx context.Context, customAttributes, id string) (entity.DataComponent, error)
- func (client *OpenCTIAPIClient) ReadDataSource(ctx context.Context, customAttributes, id string) (entity.DataSource, error)
- func (client *OpenCTIAPIClient) ReadEvent(ctx context.Context, customAttributes, id string) (entity.Event, error)
- func (client *OpenCTIAPIClient) ReadExternalReference(ctx context.Context, customAttributes, id string) (entity.ExternalReference, error)
- func (client *OpenCTIAPIClient) ReadFeedback(ctx context.Context, customAttributes, id string) (entity.Feedback, error)
- func (client *OpenCTIAPIClient) ReadGroup(ctx context.Context, customAttributes, id string) (system.Group, error)
- func (client *OpenCTIAPIClient) ReadGrouping(ctx context.Context, customAttributes, id string) (entity.Grouping, error)
- func (client *OpenCTIAPIClient) ReadIdentity(ctx context.Context, customAttributes, id string) (entity.Identity, error)
- func (client *OpenCTIAPIClient) ReadIncident(ctx context.Context, customAttributes, id string) (entity.Incident, error)
- func (client *OpenCTIAPIClient) ReadIndicator(ctx context.Context, customAttributes, id string) (entity.Indicator, error)
- func (client *OpenCTIAPIClient) ReadInfrastructure(ctx context.Context, customAttributes, id string) (entity.Infrastructure, error)
- func (client *OpenCTIAPIClient) ReadIntrusionSet(ctx context.Context, customAttributes, id string) (entity.IntrusionSet, error)
- func (client *OpenCTIAPIClient) ReadKillChainPhase(ctx context.Context, customAttributes, id string) (entity.KillChainPhase, error)
- func (client *OpenCTIAPIClient) ReadLabel(ctx context.Context, customAttributes, id string) (entity.Label, error)
- func (client *OpenCTIAPIClient) ReadLanguage(ctx context.Context, customAttributes, id string) (entity.Language, error)
- func (client *OpenCTIAPIClient) ReadLocation(ctx context.Context, customAttributes, id string) (entity.Location, error)
- func (client *OpenCTIAPIClient) ReadMalware(ctx context.Context, customAttributes, id string) (entity.Malware, error)
- func (client *OpenCTIAPIClient) ReadMalwareAnalysis(ctx context.Context, customAttributes, id string) (entity.MalwareAnalysis, error)
- func (client *OpenCTIAPIClient) ReadMarkingDefinition(ctx context.Context, customAttributes, id string) (entity.MarkingDefinition, error)
- func (client *OpenCTIAPIClient) ReadNarrative(ctx context.Context, customAttributes, id string) (entity.Narrative, error)
- func (client *OpenCTIAPIClient) ReadNote(ctx context.Context, customAttributes, id string) (entity.Note, error)
- func (client *OpenCTIAPIClient) ReadObservedData(ctx context.Context, customAttributes, id string) (entity.ObservedData, error)
- func (client *OpenCTIAPIClient) ReadOpinion(ctx context.Context, customAttributes, id string) (entity.Opinion, error)
- func (client *OpenCTIAPIClient) ReadReport(ctx context.Context, customAttributes, id string) (entity.Report, error)
- func (client *OpenCTIAPIClient) ReadRole(ctx context.Context, customAttributes, id string) (system.Role, error)
- func (client *OpenCTIAPIClient) ReadStatusTemplate(ctx context.Context, customAttributes, id string) (system.StatusTemplate, error)
- func (client *OpenCTIAPIClient) ReadStixCoreObject(ctx context.Context, customAttributes, id string) (entity.StixCoreObject, error)
- func (client *OpenCTIAPIClient) ReadStixCoreRelationship(ctx context.Context, customAttributes, id string) (entity.StixCoreRelationship, error)
- func (client *OpenCTIAPIClient) ReadStixCyberObservable(ctx context.Context, customAttributes, id string) (entity.StixCyberObservable, error)
- func (client *OpenCTIAPIClient) ReadStixDomainObject(ctx context.Context, customAttributes, id string) (entity.StixDomainObject, error)
- func (client *OpenCTIAPIClient) ReadSubType(ctx context.Context, customAttributes, id string) (system.SubType, error)
- func (client *OpenCTIAPIClient) ReadTask(ctx context.Context, customAttributes, id string) (entity.Task, error)
- func (client *OpenCTIAPIClient) ReadTaskTemplate(ctx context.Context, customAttributes, id string) (system.TaskTemplate, error)
- func (client *OpenCTIAPIClient) ReadThreatActor(ctx context.Context, customAttributes, id string) (entity.ThreatActor, error)
- func (client *OpenCTIAPIClient) ReadThreatActorGroup(ctx context.Context, customAttributes, id string) (entity.ThreatActorGroup, error)
- func (client *OpenCTIAPIClient) ReadThreatActorIndividual(ctx context.Context, customAttributes, id string) (entity.ThreatActorIndividual, error)
- func (client *OpenCTIAPIClient) ReadTool(ctx context.Context, customAttributes, id string) (entity.Tool, error)
- func (client *OpenCTIAPIClient) ReadUser(ctx context.Context, customAttributes, id string) (system.User, error)
- func (client *OpenCTIAPIClient) ReadVocabulary(ctx context.Context, customAttributes, id string) (entity.Vocabulary, error)
- func (client *OpenCTIAPIClient) ReadVulnerability(ctx context.Context, customAttributes, id string) (entity.Vulnerability, error)
- type OpenCTIGraphQLError
- type OpenCTIGraphQLErrorData
- type Option
- func WithDefaultOrderBy(orderBy string) Option
- func WithDefaultOrderMode(orderMode string) Option
- func WithDefaultPageSize(pageSize int) Option
- func WithDefaultTimeout(timeout time.Duration) Option
- func WithHealthCheck() Option
- func WithHealthCheckTimeout(timeout time.Duration) Option
- func WithLogLevel(level slog.Level) Option
- func WithLogger(log *slog.Logger) Option
- func WithTransport(transport http.RoundTripper) Option
- type UnexpectedStatusCodeError
- type UserNotFoundError
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Api Config DefaultTimeout time.Duration `default:"10s" envconfig:"TIMEOUT"` HealthCheckTimeout time.Duration `default:"3s" envconfig:"HEALTH_CHECK_TIMEOUT"` LogLevel slog.Level `default:"info" envconfig:"LOG_LEVEL"` // List Config - Overrides 'list/options.go' default values if set PageSize int `default:"-1" envconfig:"PAGE_SIZE"` OrderBy string `default:"UNSET" envconfig:"ORDER_BY"` OrderMode string `default:"UNSET" envconfig:"ORDER_MODE"` }
Config holds all the OpenCTIAPIClient parameters that can be set by environment variables.
type OpenCTIAPIClient ¶
type OpenCTIAPIClient struct {
// contains filtered or unexported fields
}
OpenCTIAPIClient is the main gocti client to interact with the OpenCTI platform.
func NewOpenCTIAPIClient ¶
func NewOpenCTIAPIClient( url, token string, opts ...Option, ) (*OpenCTIAPIClient, error)
NewOpenCTIAPIClient returns a pointer to a properly initialised OpenCTIAPIClient.
func (*OpenCTIAPIClient) CreateAttackPattern ¶
func (client *OpenCTIAPIClient) CreateAttackPattern( ctx context.Context, customAttributes string, input entity.AttackPatternAddInput, ) (entity.AttackPattern, error)
func (*OpenCTIAPIClient) CreateCampaign ¶
func (client *OpenCTIAPIClient) CreateCampaign( ctx context.Context, customAttributes string, input entity.CampaignAddInput, ) (entity.Campaign, error)
func (*OpenCTIAPIClient) CreateCaseIncident ¶
func (client *OpenCTIAPIClient) CreateCaseIncident( ctx context.Context, customAttributes string, input entity.CaseIncidentAddInput, ) (entity.CaseIncident, error)
func (*OpenCTIAPIClient) CreateCaseRfi ¶
func (client *OpenCTIAPIClient) CreateCaseRfi( ctx context.Context, customAttributes string, input entity.CaseRfiAddInput, ) (entity.CaseRfi, error)
func (*OpenCTIAPIClient) CreateCaseRft ¶
func (client *OpenCTIAPIClient) CreateCaseRft( ctx context.Context, customAttributes string, input entity.CaseRftAddInput, ) (entity.CaseRft, error)
func (*OpenCTIAPIClient) CreateCaseTemplate ¶
func (client *OpenCTIAPIClient) CreateCaseTemplate( ctx context.Context, customAttributes string, input system.CaseTemplateAddInput, ) (system.CaseTemplate, error)
func (*OpenCTIAPIClient) CreateChannel ¶
func (client *OpenCTIAPIClient) CreateChannel( ctx context.Context, customAttributes string, input entity.ChannelAddInput, ) (entity.Channel, error)
func (*OpenCTIAPIClient) CreateCourseOfAction ¶
func (client *OpenCTIAPIClient) CreateCourseOfAction( ctx context.Context, customAttributes string, input entity.CourseOfActionAddInput, ) (entity.CourseOfAction, error)
func (*OpenCTIAPIClient) CreateDataComponent ¶
func (client *OpenCTIAPIClient) CreateDataComponent( ctx context.Context, customAttributes string, input entity.DataComponentAddInput, ) (entity.DataComponent, error)
func (*OpenCTIAPIClient) CreateDataSource ¶
func (client *OpenCTIAPIClient) CreateDataSource( ctx context.Context, customAttributes string, input entity.DataSourceAddInput, ) (entity.DataSource, error)
func (*OpenCTIAPIClient) CreateEvent ¶
func (client *OpenCTIAPIClient) CreateEvent( ctx context.Context, customAttributes string, input entity.EventAddInput, ) (entity.Event, error)
func (*OpenCTIAPIClient) CreateExternalReference ¶
func (client *OpenCTIAPIClient) CreateExternalReference( ctx context.Context, customAttributes string, input entity.ExternalReferenceAddInput, ) (entity.ExternalReference, error)
func (*OpenCTIAPIClient) CreateFeedback ¶
func (client *OpenCTIAPIClient) CreateFeedback( ctx context.Context, customAttributes string, input entity.FeedbackAddInput, ) (entity.Feedback, error)
func (*OpenCTIAPIClient) CreateGroup ¶
func (client *OpenCTIAPIClient) CreateGroup( ctx context.Context, customAttributes string, input system.GroupAddInput, ) (system.Group, error)
func (*OpenCTIAPIClient) CreateGrouping ¶
func (client *OpenCTIAPIClient) CreateGrouping( ctx context.Context, customAttributes string, input entity.GroupingAddInput, ) (entity.Grouping, error)
func (*OpenCTIAPIClient) CreateIdentity ¶
func (client *OpenCTIAPIClient) CreateIdentity( ctx context.Context, customAttributes string, input entity.IdentityAddInput, ) (entity.Identity, error)
func (*OpenCTIAPIClient) CreateIncident ¶
func (client *OpenCTIAPIClient) CreateIncident( ctx context.Context, customAttributes string, input entity.IncidentAddInput, ) (entity.Incident, error)
func (*OpenCTIAPIClient) CreateIndicator ¶
func (client *OpenCTIAPIClient) CreateIndicator( ctx context.Context, customAttributes string, input entity.IndicatorAddInput, ) (entity.Indicator, error)
func (*OpenCTIAPIClient) CreateInfrastructure ¶
func (client *OpenCTIAPIClient) CreateInfrastructure( ctx context.Context, customAttributes string, input entity.InfrastructureAddInput, ) (entity.Infrastructure, error)
func (*OpenCTIAPIClient) CreateIntrusionSet ¶
func (client *OpenCTIAPIClient) CreateIntrusionSet( ctx context.Context, customAttributes string, input entity.IntrusionSetAddInput, ) (entity.IntrusionSet, error)
func (*OpenCTIAPIClient) CreateKillChainPhase ¶
func (client *OpenCTIAPIClient) CreateKillChainPhase( ctx context.Context, customAttributes string, input entity.KillChainPhaseAddInput, ) (entity.KillChainPhase, error)
func (*OpenCTIAPIClient) CreateLabel ¶
func (client *OpenCTIAPIClient) CreateLabel( ctx context.Context, customAttributes string, input entity.LabelAddInput, ) (entity.Label, error)
func (*OpenCTIAPIClient) CreateLanguage ¶
func (client *OpenCTIAPIClient) CreateLanguage( ctx context.Context, customAttributes string, input entity.LanguageAddInput, ) (entity.Language, error)
func (*OpenCTIAPIClient) CreateLocation ¶
func (client *OpenCTIAPIClient) CreateLocation( ctx context.Context, customAttributes string, input entity.LocationAddInput, ) (entity.Location, error)
func (*OpenCTIAPIClient) CreateMalware ¶
func (client *OpenCTIAPIClient) CreateMalware( ctx context.Context, customAttributes string, input entity.MalwareAddInput, ) (entity.Malware, error)
func (*OpenCTIAPIClient) CreateMalwareAnalysis ¶
func (client *OpenCTIAPIClient) CreateMalwareAnalysis( ctx context.Context, customAttributes string, input entity.MalwareAnalysisAddInput, ) (entity.MalwareAnalysis, error)
func (*OpenCTIAPIClient) CreateMarkingDefinition ¶
func (client *OpenCTIAPIClient) CreateMarkingDefinition( ctx context.Context, customAttributes string, input entity.MarkingDefinitionAddInput, ) (entity.MarkingDefinition, error)
func (*OpenCTIAPIClient) CreateNarrative ¶
func (client *OpenCTIAPIClient) CreateNarrative( ctx context.Context, customAttributes string, input entity.NarrativeAddInput, ) (entity.Narrative, error)
func (*OpenCTIAPIClient) CreateNote ¶
func (client *OpenCTIAPIClient) CreateNote( ctx context.Context, customAttributes string, input entity.NoteAddInput, ) (entity.Note, error)
func (*OpenCTIAPIClient) CreateObservedData ¶
func (client *OpenCTIAPIClient) CreateObservedData( ctx context.Context, customAttributes string, input entity.ObservedDataAddInput, ) (entity.ObservedData, error)
func (*OpenCTIAPIClient) CreateOpinion ¶
func (client *OpenCTIAPIClient) CreateOpinion( ctx context.Context, customAttributes string, input entity.OpinionAddInput, ) (entity.Opinion, error)
func (*OpenCTIAPIClient) CreateReport ¶
func (client *OpenCTIAPIClient) CreateReport( ctx context.Context, customAttributes string, input entity.ReportAddInput, ) (entity.Report, error)
func (*OpenCTIAPIClient) CreateRole ¶
func (client *OpenCTIAPIClient) CreateRole( ctx context.Context, customAttributes string, input system.RoleAddInput, ) (system.Role, error)
func (*OpenCTIAPIClient) CreateStatusTemplate ¶
func (client *OpenCTIAPIClient) CreateStatusTemplate( ctx context.Context, customAttributes string, input system.StatusTemplateAddInput, ) (system.StatusTemplate, error)
func (*OpenCTIAPIClient) CreateStixCoreRelationship ¶
func (client *OpenCTIAPIClient) CreateStixCoreRelationship( ctx context.Context, customAttributes string, input entity.StixCoreRelationshipAddInput, ) (entity.StixCoreRelationship, error)
func (*OpenCTIAPIClient) CreateStixCyberObservable ¶
func (client *OpenCTIAPIClient) CreateStixCyberObservable( ctx context.Context, customAttributes string, input entity.StixCyberObservableAddInput, ) (entity.StixCyberObservable, error)
func (*OpenCTIAPIClient) CreateStixDomainObject ¶
func (client *OpenCTIAPIClient) CreateStixDomainObject( ctx context.Context, customAttributes string, input entity.StixDomainObjectAddInput, ) (entity.StixDomainObject, error)
func (*OpenCTIAPIClient) CreateTask ¶
func (client *OpenCTIAPIClient) CreateTask( ctx context.Context, customAttributes string, input entity.TaskAddInput, ) (entity.Task, error)
func (*OpenCTIAPIClient) CreateTaskTemplate ¶
func (client *OpenCTIAPIClient) CreateTaskTemplate( ctx context.Context, customAttributes string, input system.TaskTemplateAddInput, ) (system.TaskTemplate, error)
func (*OpenCTIAPIClient) CreateThreatActorGroup ¶
func (client *OpenCTIAPIClient) CreateThreatActorGroup( ctx context.Context, customAttributes string, input entity.ThreatActorGroupAddInput, ) (entity.ThreatActorGroup, error)
func (*OpenCTIAPIClient) CreateThreatActorIndividual ¶
func (client *OpenCTIAPIClient) CreateThreatActorIndividual( ctx context.Context, customAttributes string, input entity.ThreatActorIndividualAddInput, ) (entity.ThreatActorIndividual, error)
func (*OpenCTIAPIClient) CreateTool ¶
func (client *OpenCTIAPIClient) CreateTool( ctx context.Context, customAttributes string, input entity.ToolAddInput, ) (entity.Tool, error)
func (*OpenCTIAPIClient) CreateUser ¶
func (client *OpenCTIAPIClient) CreateUser( ctx context.Context, customAttributes string, input system.UserAddInput, ) (system.User, error)
func (*OpenCTIAPIClient) CreateVocabulary ¶
func (client *OpenCTIAPIClient) CreateVocabulary( ctx context.Context, customAttributes string, input entity.VocabularyAddInput, ) (entity.Vocabulary, error)
func (*OpenCTIAPIClient) CreateVulnerability ¶
func (client *OpenCTIAPIClient) CreateVulnerability( ctx context.Context, customAttributes string, input entity.VulnerabilityAddInput, ) (entity.Vulnerability, error)
func (*OpenCTIAPIClient) DefaultOrderBy ¶
func (client *OpenCTIAPIClient) DefaultOrderBy() (string, bool)
DefaultOrderBy returns the default field name for ordering list queries and an ok expression indicating if the value has been set (true) or not (false) by the user via env variables or OpenCTIAPIClient constructor options. The zero value is returned if not set.
func (*OpenCTIAPIClient) DefaultOrderMode ¶
func (client *OpenCTIAPIClient) DefaultOrderMode() (string, bool)
DefaultOrderMode returns the default mode for ordering list queries and an ok expression indicating if the value has been set (true) or not (false) by the user via env variables or OpenCTIAPIClient constructor options. The zero value is returned if not set.
func (*OpenCTIAPIClient) DefaultPageSize ¶
func (client *OpenCTIAPIClient) DefaultPageSize() (int, bool)
DefaultPageSize returns the default pagination size for list queries and an ok expression indicating if the value has been set (true) or not (false) by the user via env variables or OpenCTIAPIClient constructor options. The zero value is returned if not set.
func (*OpenCTIAPIClient) DeleteAttackPattern ¶
func (*OpenCTIAPIClient) DeleteCampaign ¶
func (*OpenCTIAPIClient) DeleteCaseIncident ¶
func (*OpenCTIAPIClient) DeleteCaseRfi ¶
func (*OpenCTIAPIClient) DeleteCaseRft ¶
func (*OpenCTIAPIClient) DeleteCaseTemplate ¶
func (*OpenCTIAPIClient) DeleteChannel ¶
func (*OpenCTIAPIClient) DeleteCourseOfAction ¶
func (*OpenCTIAPIClient) DeleteDataComponent ¶
func (*OpenCTIAPIClient) DeleteDataSource ¶
func (*OpenCTIAPIClient) DeleteEvent ¶
func (*OpenCTIAPIClient) DeleteExternalReference ¶
func (*OpenCTIAPIClient) DeleteFeedback ¶
func (*OpenCTIAPIClient) DeleteGroup ¶
func (*OpenCTIAPIClient) DeleteGrouping ¶
func (*OpenCTIAPIClient) DeleteIdentity ¶
func (*OpenCTIAPIClient) DeleteIncident ¶
func (*OpenCTIAPIClient) DeleteIndicator ¶
func (*OpenCTIAPIClient) DeleteInfrastructure ¶
func (*OpenCTIAPIClient) DeleteIntrusionSet ¶
func (*OpenCTIAPIClient) DeleteKillChainPhase ¶
func (*OpenCTIAPIClient) DeleteLabel ¶
func (*OpenCTIAPIClient) DeleteLanguage ¶
func (*OpenCTIAPIClient) DeleteLocation ¶
func (*OpenCTIAPIClient) DeleteMalware ¶
func (*OpenCTIAPIClient) DeleteMalwareAnalysis ¶
func (*OpenCTIAPIClient) DeleteMarkingDefinition ¶
func (*OpenCTIAPIClient) DeleteNarrative ¶
func (*OpenCTIAPIClient) DeleteNote ¶
func (*OpenCTIAPIClient) DeleteObservedData ¶
func (*OpenCTIAPIClient) DeleteOpinion ¶
func (*OpenCTIAPIClient) DeleteReport ¶
func (*OpenCTIAPIClient) DeleteRole ¶
func (*OpenCTIAPIClient) DeleteStatusTemplate ¶
func (*OpenCTIAPIClient) DeleteStixCoreObject ¶
func (*OpenCTIAPIClient) DeleteStixCoreRelationship ¶
func (*OpenCTIAPIClient) DeleteStixCyberObservable ¶
func (*OpenCTIAPIClient) DeleteStixDomainObject ¶
func (*OpenCTIAPIClient) DeleteSubType ¶
func (*OpenCTIAPIClient) DeleteTask ¶
func (*OpenCTIAPIClient) DeleteTaskTemplate ¶
func (*OpenCTIAPIClient) DeleteThreatActorGroup ¶
func (*OpenCTIAPIClient) DeleteThreatActorIndividual ¶
func (*OpenCTIAPIClient) DeleteTool ¶
func (*OpenCTIAPIClient) DeleteUser ¶
func (*OpenCTIAPIClient) DeleteVocabulary ¶
func (*OpenCTIAPIClient) DeleteVulnerability ¶
func (*OpenCTIAPIClient) HealthCheck ¶
func (client *OpenCTIAPIClient) HealthCheck(ctx context.Context) error
HealthCheck tries to query the OpenCTI version from the server, returning any error it encounters.
func (*OpenCTIAPIClient) Impersonate ¶
func (client *OpenCTIAPIClient) Impersonate(ctx context.Context, username string) error
Impersonate will setup the OpenCTIAPIClient to impersonate the given user for exactly one query.
func (*OpenCTIAPIClient) ListAttackPatterns ¶
func (client *OpenCTIAPIClient) ListAttackPatterns( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.AttackPattern, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListCampaigns ¶
func (client *OpenCTIAPIClient) ListCampaigns( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Campaign, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListCapabilities ¶
func (client *OpenCTIAPIClient) ListCapabilities( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]system.Capability, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListCaseIncidents ¶
func (client *OpenCTIAPIClient) ListCaseIncidents( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.CaseIncident, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListCaseRfis ¶
func (client *OpenCTIAPIClient) ListCaseRfis( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.CaseRfi, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListCaseRfts ¶
func (client *OpenCTIAPIClient) ListCaseRfts( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.CaseRft, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListCaseTemplates ¶
func (client *OpenCTIAPIClient) ListCaseTemplates( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]system.CaseTemplate, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListChannels ¶
func (client *OpenCTIAPIClient) ListChannels( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Channel, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListCoursesOfAction ¶
func (client *OpenCTIAPIClient) ListCoursesOfAction( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.CourseOfAction, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListDataComponents ¶
func (client *OpenCTIAPIClient) ListDataComponents( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.DataComponent, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListDataSources ¶
func (client *OpenCTIAPIClient) ListDataSources( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.DataSource, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListEvents ¶
func (client *OpenCTIAPIClient) ListEvents( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Event, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListExternalReferences ¶
func (client *OpenCTIAPIClient) ListExternalReferences( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.ExternalReference, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListFeedbacks ¶
func (client *OpenCTIAPIClient) ListFeedbacks( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Feedback, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListGroupings ¶
func (client *OpenCTIAPIClient) ListGroupings( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Grouping, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListGroups ¶
func (client *OpenCTIAPIClient) ListGroups( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]system.Group, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListIdentities ¶
func (client *OpenCTIAPIClient) ListIdentities( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Identity, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListIncidents ¶
func (client *OpenCTIAPIClient) ListIncidents( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Incident, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListIndicators ¶
func (client *OpenCTIAPIClient) ListIndicators( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Indicator, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListInfrastructures ¶
func (client *OpenCTIAPIClient) ListInfrastructures( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Infrastructure, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListIntrusionSets ¶
func (client *OpenCTIAPIClient) ListIntrusionSets( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.IntrusionSet, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListKillChainPhases ¶
func (client *OpenCTIAPIClient) ListKillChainPhases( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.KillChainPhase, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListLabels ¶
func (client *OpenCTIAPIClient) ListLabels( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Label, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListLanguages ¶
func (client *OpenCTIAPIClient) ListLanguages( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Language, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListLocations ¶
func (client *OpenCTIAPIClient) ListLocations( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Location, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListMalwareAnalyses ¶
func (client *OpenCTIAPIClient) ListMalwareAnalyses( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.MalwareAnalysis, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListMalwares ¶
func (client *OpenCTIAPIClient) ListMalwares( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Malware, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListMarkingDefinitions ¶
func (client *OpenCTIAPIClient) ListMarkingDefinitions( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.MarkingDefinition, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListNarratives ¶
func (client *OpenCTIAPIClient) ListNarratives( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Narrative, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListNotes ¶
func (client *OpenCTIAPIClient) ListNotes( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Note, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListObservedDatas ¶
func (client *OpenCTIAPIClient) ListObservedDatas( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.ObservedData, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListOpinions ¶
func (client *OpenCTIAPIClient) ListOpinions( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Opinion, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListReports ¶
func (client *OpenCTIAPIClient) ListReports( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Report, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListRoles ¶
func (client *OpenCTIAPIClient) ListRoles( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]system.Role, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListStatusTemplates ¶
func (client *OpenCTIAPIClient) ListStatusTemplates( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]system.StatusTemplate, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListStixCoreObjects ¶
func (client *OpenCTIAPIClient) ListStixCoreObjects( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.StixCoreObject, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListStixCoreRelationships ¶
func (client *OpenCTIAPIClient) ListStixCoreRelationships( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.StixCoreRelationship, error)
Available list.Option parameters:
- list.WithAfter
- list.WithConfidences
- list.WithElementWithTargetTypes
- list.WithEndDate
- list.WithFilters
- list.WithFirst
- list.WithFirstSeenStart
- list.WithFirstSeenStop
- list.WithFromIDList
- list.WithFromOrToIDList
- list.WithFromRole
- list.WithFromTypes
- list.WithLastSeenStart
- list.WithLastSeenStop
- list.WithOrderBy
- list.WithOrderMode
- list.WithRelationshipType
- list.WithSearch
- list.WithStartDate
- list.WithStartTimeStart
- list.WithStartTimeStop
- list.WithStix
- list.WithStopTimeStart
- list.WithStopTimeStop
- list.WithToIDList
- list.WithToRole
- list.WithToTypes
func (*OpenCTIAPIClient) ListStixCyberObservables ¶
func (client *OpenCTIAPIClient) ListStixCyberObservables( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.StixCyberObservable, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListStixDomainObjects ¶
func (client *OpenCTIAPIClient) ListStixDomainObjects( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.StixDomainObject, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListSubTypes ¶
func (client *OpenCTIAPIClient) ListSubTypes( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]system.SubType, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListTaskTemplates ¶
func (client *OpenCTIAPIClient) ListTaskTemplates( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]system.TaskTemplate, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListTasks ¶
func (client *OpenCTIAPIClient) ListTasks( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Task, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListThreatActorGroups ¶
func (client *OpenCTIAPIClient) ListThreatActorGroups( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.ThreatActorGroup, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListThreatActorIndividuals ¶
func (client *OpenCTIAPIClient) ListThreatActorIndividuals( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.ThreatActorIndividual, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListThreatActors ¶
func (client *OpenCTIAPIClient) ListThreatActors( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.ThreatActor, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListTools ¶
func (client *OpenCTIAPIClient) ListTools( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Tool, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListUsers ¶
func (client *OpenCTIAPIClient) ListUsers( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]system.User, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListVocabularies ¶
func (client *OpenCTIAPIClient) ListVocabularies( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Vocabulary, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) ListVulnerabilities ¶
func (client *OpenCTIAPIClient) ListVulnerabilities( ctx context.Context, customAttributes string, getAll bool, pageInfo *graphql.PageInfo, opts ...list.Option, ) ([]entity.Vulnerability, error)
Available list.Option parameters:
func (*OpenCTIAPIClient) Logger ¶
func (client *OpenCTIAPIClient) Logger() *slog.Logger
Logger returns the OpenCTIAPIClient stored logger.
func (*OpenCTIAPIClient) Query ¶
func (client *OpenCTIAPIClient) Query( ctx context.Context, query string, variables map[string]any, ) (map[string]any, error)
Query sends the provided query string, with optional variables, to the OpenCTI GraphQL server and returns the response.
func (*OpenCTIAPIClient) ReadAttackPattern ¶
func (client *OpenCTIAPIClient) ReadAttackPattern( ctx context.Context, customAttributes, id string, ) (entity.AttackPattern, error)
func (*OpenCTIAPIClient) ReadCampaign ¶
func (*OpenCTIAPIClient) ReadCaseIncident ¶
func (client *OpenCTIAPIClient) ReadCaseIncident( ctx context.Context, customAttributes, id string, ) (entity.CaseIncident, error)
func (*OpenCTIAPIClient) ReadCaseRfi ¶
func (*OpenCTIAPIClient) ReadCaseRft ¶
func (*OpenCTIAPIClient) ReadCaseTemplate ¶
func (client *OpenCTIAPIClient) ReadCaseTemplate( ctx context.Context, customAttributes, id string, ) (system.CaseTemplate, error)
func (*OpenCTIAPIClient) ReadChannel ¶
func (*OpenCTIAPIClient) ReadCourseOfAction ¶
func (client *OpenCTIAPIClient) ReadCourseOfAction( ctx context.Context, customAttributes, id string, ) (entity.CourseOfAction, error)
func (*OpenCTIAPIClient) ReadDataComponent ¶
func (client *OpenCTIAPIClient) ReadDataComponent( ctx context.Context, customAttributes, id string, ) (entity.DataComponent, error)
func (*OpenCTIAPIClient) ReadDataSource ¶
func (client *OpenCTIAPIClient) ReadDataSource( ctx context.Context, customAttributes, id string, ) (entity.DataSource, error)
func (*OpenCTIAPIClient) ReadExternalReference ¶
func (client *OpenCTIAPIClient) ReadExternalReference( ctx context.Context, customAttributes, id string, ) (entity.ExternalReference, error)
func (*OpenCTIAPIClient) ReadFeedback ¶
func (*OpenCTIAPIClient) ReadGrouping ¶
func (*OpenCTIAPIClient) ReadIdentity ¶
func (*OpenCTIAPIClient) ReadIncident ¶
func (*OpenCTIAPIClient) ReadIndicator ¶
func (*OpenCTIAPIClient) ReadInfrastructure ¶
func (client *OpenCTIAPIClient) ReadInfrastructure( ctx context.Context, customAttributes, id string, ) (entity.Infrastructure, error)
func (*OpenCTIAPIClient) ReadIntrusionSet ¶
func (client *OpenCTIAPIClient) ReadIntrusionSet( ctx context.Context, customAttributes, id string, ) (entity.IntrusionSet, error)
func (*OpenCTIAPIClient) ReadKillChainPhase ¶
func (client *OpenCTIAPIClient) ReadKillChainPhase( ctx context.Context, customAttributes, id string, ) (entity.KillChainPhase, error)
func (*OpenCTIAPIClient) ReadLanguage ¶
func (*OpenCTIAPIClient) ReadLocation ¶
func (*OpenCTIAPIClient) ReadMalware ¶
func (*OpenCTIAPIClient) ReadMalwareAnalysis ¶
func (client *OpenCTIAPIClient) ReadMalwareAnalysis( ctx context.Context, customAttributes, id string, ) (entity.MalwareAnalysis, error)
func (*OpenCTIAPIClient) ReadMarkingDefinition ¶
func (client *OpenCTIAPIClient) ReadMarkingDefinition( ctx context.Context, customAttributes, id string, ) (entity.MarkingDefinition, error)
func (*OpenCTIAPIClient) ReadNarrative ¶
func (*OpenCTIAPIClient) ReadObservedData ¶
func (client *OpenCTIAPIClient) ReadObservedData( ctx context.Context, customAttributes, id string, ) (entity.ObservedData, error)
func (*OpenCTIAPIClient) ReadOpinion ¶
func (*OpenCTIAPIClient) ReadReport ¶
func (*OpenCTIAPIClient) ReadStatusTemplate ¶
func (client *OpenCTIAPIClient) ReadStatusTemplate( ctx context.Context, customAttributes, id string, ) (system.StatusTemplate, error)
func (*OpenCTIAPIClient) ReadStixCoreObject ¶
func (client *OpenCTIAPIClient) ReadStixCoreObject( ctx context.Context, customAttributes, id string, ) (entity.StixCoreObject, error)
func (*OpenCTIAPIClient) ReadStixCoreRelationship ¶
func (client *OpenCTIAPIClient) ReadStixCoreRelationship( ctx context.Context, customAttributes, id string, ) (entity.StixCoreRelationship, error)
func (*OpenCTIAPIClient) ReadStixCyberObservable ¶
func (client *OpenCTIAPIClient) ReadStixCyberObservable( ctx context.Context, customAttributes, id string, ) (entity.StixCyberObservable, error)
func (*OpenCTIAPIClient) ReadStixDomainObject ¶
func (client *OpenCTIAPIClient) ReadStixDomainObject( ctx context.Context, customAttributes, id string, ) (entity.StixDomainObject, error)
func (*OpenCTIAPIClient) ReadSubType ¶
func (*OpenCTIAPIClient) ReadTaskTemplate ¶
func (client *OpenCTIAPIClient) ReadTaskTemplate( ctx context.Context, customAttributes, id string, ) (system.TaskTemplate, error)
func (*OpenCTIAPIClient) ReadThreatActor ¶
func (client *OpenCTIAPIClient) ReadThreatActor( ctx context.Context, customAttributes, id string, ) (entity.ThreatActor, error)
func (*OpenCTIAPIClient) ReadThreatActorGroup ¶
func (client *OpenCTIAPIClient) ReadThreatActorGroup( ctx context.Context, customAttributes, id string, ) (entity.ThreatActorGroup, error)
func (*OpenCTIAPIClient) ReadThreatActorIndividual ¶
func (client *OpenCTIAPIClient) ReadThreatActorIndividual( ctx context.Context, customAttributes, id string, ) (entity.ThreatActorIndividual, error)
func (*OpenCTIAPIClient) ReadVocabulary ¶
func (client *OpenCTIAPIClient) ReadVocabulary( ctx context.Context, customAttributes, id string, ) (entity.Vocabulary, error)
func (*OpenCTIAPIClient) ReadVulnerability ¶
func (client *OpenCTIAPIClient) ReadVulnerability( ctx context.Context, customAttributes, id string, ) (entity.Vulnerability, error)
type OpenCTIGraphQLError ¶
type OpenCTIGraphQLError struct { Name string `json:"name"` Message string `json:"message"` TimeThrown string `json:"time_thrown"` Data OpenCTIGraphQLErrorData `json:"data"` }
func (OpenCTIGraphQLError) Error ¶
func (err OpenCTIGraphQLError) Error() string
type OpenCTIGraphQLErrorData ¶
type Option ¶
type Option func(c *OpenCTIAPIClient)
func WithDefaultOrderBy ¶
func WithDefaultOrderMode ¶
func WithDefaultPageSize ¶
func WithDefaultTimeout ¶
func WithHealthCheck ¶
func WithHealthCheck() Option
func WithHealthCheckTimeout ¶
func WithLogLevel ¶
func WithLogger ¶
func WithTransport ¶
func WithTransport(transport http.RoundTripper) Option
type UnexpectedStatusCodeError ¶
type UnexpectedStatusCodeError struct {
// contains filtered or unexported fields
}
func (UnexpectedStatusCodeError) Error ¶
func (err UnexpectedStatusCodeError) Error() string
type UserNotFoundError ¶
type UserNotFoundError struct {
// contains filtered or unexported fields
}
func (UserNotFoundError) Error ¶
func (err UserNotFoundError) Error() string