Documentation
¶
Index ¶
- Constants
- func ActionNamesToEmailActions(o []string) []humiographql.SharedActionNameType
- func ActionNotFound(name string) error
- func AggregateAlertNotFound(name string) error
- func AlertNotFound(name string) error
- func CloneHeader(in http.Header) http.Header
- func CloneRequest(req *http.Request) *http.Request
- func FilterAlertNotFound(name string) error
- func GetActionNames(o []humiographql.SharedActionNameType) []string
- func IngestTokenNotFound(name string) error
- func NewHttpTransport(config Config) *http.Transport
- func ParserNotFound(name string) error
- func QueryOwnershipIsOrganizationOwnership(v humiographql.SharedQueryOwnershipType) bool
- func RepositoryNotFound(name string) error
- func ScheduledSearchNotFound(name string) error
- func SearchDomainNotFound(name string) error
- func TestDataToParserDetailsTestCasesParserTestCase(o []string) []humiographql.ParserDetailsTestCasesParserTestCase
- func TestDataToParserTestCaseInput(o []string) []humiographql.ParserTestCaseInput
- func UserNotFound(name string) error
- func ViewNotFound(name string) error
- type Client
- func (c *Client) Address() *url.URL
- func (c *Client) Config() Config
- func (c *Client) HTTPRequestContext(ctx context.Context, httpMethod string, path string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) MakeRequest(ctx context.Context, req *graphql.Request, resp *graphql.Response) error
- func (c *Client) Status(ctx context.Context) (*StatusResponse, error)
- func (c *Client) Token() string
- type Config
- type EntityNotFound
- type ErrorList
- type GraphqlError
- type Response
- type StatusResponse
Constants ¶
View Source
const JSONContentType string = "application/json"
JSONContentType is "application/json"
Variables ¶
This section is empty.
Functions ¶
func ActionNamesToEmailActions ¶
func ActionNamesToEmailActions(o []string) []humiographql.SharedActionNameType
func ActionNotFound ¶
func AggregateAlertNotFound ¶
func AlertNotFound ¶
func CloneHeader ¶
CloneHeader creates a deep copy of an http.Header.
func CloneRequest ¶
CloneRequest creates a shallow copy of the request along with a deep copy of the Headers.
func FilterAlertNotFound ¶
func GetActionNames ¶
func GetActionNames(o []humiographql.SharedActionNameType) []string
GetActionNames takes a list of humiographql.SharedActionNameType and returns a string slice with names of all the actions
func IngestTokenNotFound ¶
func NewHttpTransport ¶
func ParserNotFound ¶
func QueryOwnershipIsOrganizationOwnership ¶
func QueryOwnershipIsOrganizationOwnership(v humiographql.SharedQueryOwnershipType) bool
func RepositoryNotFound ¶
func ScheduledSearchNotFound ¶
func SearchDomainNotFound ¶
func TestDataToParserDetailsTestCasesParserTestCase ¶
func TestDataToParserDetailsTestCasesParserTestCase(o []string) []humiographql.ParserDetailsTestCasesParserTestCase
func TestDataToParserTestCaseInput ¶
func TestDataToParserTestCaseInput(o []string) []humiographql.ParserTestCaseInput
func UserNotFound ¶
func ViewNotFound ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientWithTransport ¶
func (*Client) HTTPRequestContext ¶
func (*Client) MakeRequest ¶
type EntityNotFound ¶
type EntityNotFound struct {
// contains filtered or unexported fields
}
func (EntityNotFound) EntityType ¶
func (e EntityNotFound) EntityType() entityType
func (EntityNotFound) Error ¶
func (e EntityNotFound) Error() string
func (EntityNotFound) Key ¶
func (e EntityNotFound) Key() string
type ErrorList ¶
type ErrorList []*GraphqlError
type GraphqlError ¶
type GraphqlError struct {
Err error `json:"-"`
Message string `json:"message"`
Path ast.Path `json:"path,omitempty"`
Locations []gqlerror.Location `json:"locations,omitempty"`
Extensions map[string]interface{} `json:"extensions,omitempty"`
Rule string `json:"-"`
State map[string]string `json:"state,omitempty"`
}
func (*GraphqlError) Error ¶
func (err *GraphqlError) Error() string
type StatusResponse ¶
type StatusResponse struct {
Version string
}
Click to show internal directories.
Click to hide internal directories.