Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Versions ¶
type Versions struct { More bool `json:"more,omitempty"` Versions []string `json:"versions,omitempty"` }
Versions - This type implements the TAXII 2 Versions Resource and defines all of the properties and methods needed to create and work with the TAXII Versions Resource.
The following information comes directly from the TAXII 2 specification documents.
This Endpoint retrieves a list of versions of an object in a Collection. This list can be used to decide whether it's worth retrieving the actual objects, or if new versions have been added.
If a client fails authentication then this endpoint MUST return either an HTTP 401 (Unauthorized) or an HTTP 404 (Not Found).
If the Collection specifies can_read as false for a particular client, this Endpoint MUST return an HTTP HTTP 403 (Forbidden) or HTTP 404 (Not Found) error.
func New ¶
func New() *Versions
New - This function will create a new TAXII Versions object and return it as a pointer.
func (*Versions) AddVersion ¶
AddObject - This method will take in an object as an interface and add it to the list of objects in the envelope