versions

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

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

func (r *Versions) AddVersion(v string) error

AddObject - This method will take in an object as an interface and add it to the list of objects in the envelope

func (*Versions) GetMore

func (r *Versions) GetMore() bool

GetMore - This method will return the more property

func (*Versions) SetMore

func (r *Versions) SetMore() error

SetMore - This method will set the more property to true

Jump to

Keyboard shortcuts

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