feed

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//feed frequency
	FEED_FREQUENCY_HOURLY = "HOURLY"
	FEED_FREQUENCY_DAILY  = "DAILY"

	//feed type
	FEED_TYPE_IP_LIST  = "IP_LIST"
	FEED_TYPE_URL_LIST = "URL_LIST"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteInput

type DeleteInput struct {
	Rulestack string
	Scope     string
	Name      string
}

type Info

type Info struct {
	Rulestack    string `json:"-"`
	Scope        string `json:"-"`
	Name         string `json:"Name,omitempty"`
	Description  string `json:"Description,omitempty"`
	Certificate  string `json:"Certificate,omitempty"`
	Url          string `json:"FeedURL"`
	Type         string `json:"Type"`
	Frequency    string `json:"Frequency"`
	Time         int    `json:"Time"`
	AuditComment string `json:"AuditComment,omitempty"`
	UpdateToken  string `json:"UpdateToken,omitempty"`
	DeleteFlag   bool   `json:"-"`
}

type ListInput

type ListInput struct {
	Rulestack   string `json:"-"`
	Scope       string `json:"-"`
	Candidate   bool   `json:"Candidate"`
	Running     bool   `json:"Running,omitempty"`
	Uncommitted bool   `json:"Uncommitted,omitempty"`
	Type        string `json:"Type,omitempty"`
	NextToken   string `json:"NextToken,omitempty"`
	MaxResults  int    `json:"MaxResults,omitempty"`
}

type ListOutput

type ListOutput struct {
	Response *ListOutputDetails `json:"Response"`
	Status   response.Status    `json:"ResponseStatus"`
}

func (ListOutput) Failed

func (o ListOutput) Failed() *response.Status

type ListOutputDetails

type ListOutputDetails struct {
	Rulestack   string            `json:"RuleStackName"`
	Candidates  []string          `json:"FeedCandidate"`
	Running     []string          `json:"FeedRunning"`
	Uncommitted []ListUncommitted `json:"FeedUncommitted"`
	NextToken   string            `json:"NextToken"`
}

type ListUncommitted

type ListUncommitted struct {
	Name      string `json:"Name"`
	Operation string `json:"Operation"`
}

type ReadInput

type ReadInput struct {
	Rulestack string `json:"-"`
	Scope     string `json:"-"`
	Name      string `json:"-"`
	Candidate bool   `json:"Candidate"`
	Running   bool   `json:"Running,omitempty"`
}

type ReadOutput

type ReadOutput struct {
	Response *ReadResponse   `json:"Response"`
	Status   response.Status `json:"ResponseStatus"`
}

func (ReadOutput) Failed

func (o ReadOutput) Failed() *response.Status

type ReadResponse

type ReadResponse struct {
	Rulestack string `json:"RuleStackName"`
	Name      string `json:"Name"`
	Candidate *Info  `json:"FeedCandidate"`
	Running   *Info  `json:"FeedRunning"`
}

Jump to

Keyboard shortcuts

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