Documentation ¶
Overview ¶
Package properties defines various common TAXII properties.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DescriptionProperty ¶
type DescriptionProperty struct {
Description string `json:"description,omitempty"`
}
DescriptionProperty - A property used by one or more TAXII resources.
func (*DescriptionProperty) GetDescription ¶
func (p *DescriptionProperty) GetDescription() string
GetDescription - This method returns the description.
func (*DescriptionProperty) SetDescription ¶
func (p *DescriptionProperty) SetDescription(s string) error
SetDescription - This method takes in a string value representing a text description and updates the description property.
type IDProperty ¶
type IDProperty struct {
ID string `json:"id,omitempty"`
}
IDProperty - A property used by one or more TAXII resources.
func (*IDProperty) CreateTAXIIUUID ¶
func (p *IDProperty) CreateTAXIIUUID() (string, error)
CreateTAXIIUUID - This method does not take in any parameters. It is used to create a new ID based on the approved TAXII UUIDv4 format.
func (*IDProperty) SetID ¶
func (p *IDProperty) SetID(s string) error
SetID - This method takes in a string value representing a TAXII id and updates the ID property.
func (*IDProperty) SetNewID ¶
func (p *IDProperty) SetNewID() error
SetNewID - This method does not take in any parameters. It is used to create a new ID based on the approved TAXII UUIDv4 format and assigns it to the ID property.
type TitleProperty ¶
type TitleProperty struct {
Title string `json:"title"`
}
TitleProperty - A property used by one or more TAXII resources.
func (*TitleProperty) GetTitle ¶
func (p *TitleProperty) GetTitle() string
GetTitle - This method returns the title.
func (*TitleProperty) SetTitle ¶
func (p *TitleProperty) SetTitle(s string) error
SetTitle - This method takes in a string value representing a title or name and updates the title property.