Documentation ¶
Index ¶
- Constants
- type Client
- func (c Client) CreateEngagement(product Product) (*Engagement, error)
- func (c Client) CreateProduct(productName string, productType ProductType) (*Product, error)
- func (c Client) CreateProductType(productTypeName string) (*ProductType, error)
- func (c Client) CreateSLAConfiguration(sla SLAConfiguration) (*SLAConfiguration, error)
- func (c Client) GetOrCreateDefaultSLAConfiguration() (*SLAConfiguration, error)
- func (c Client) GetOrCreateProduct(productName string, productType ProductType) (*Product, error)
- func (c Client) GetOrCreateProductType(productTypeName string) (*ProductType, error)
- func (c Client) GetOrCreateSLAConfiguration(config SLAConfiguration) (*SLAConfiguration, error)
- func (c Client) GetProduct(productName string) (*Product, error)
- func (c Client) GetProductType(productTypeName string) (*ProductType, error)
- func (c Client) GetSLAConfiguration(name string) (*SLAConfiguration, error)
- func (c Client) ImportScanResult(engagement Engagement, resultPath string, scanType string) error
- func (c Client) IsAnySLAConfiguration() (bool, error)
- type Engagement
- type GetProductTypesResult
- type GetProductsResult
- type GetSLAConfigurationResult
- type Product
- type ProductType
- type SLAConfiguration
Constants ¶
View Source
const (
ProductTypeScanioRepo = "SCANIO-REPO"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) CreateEngagement ¶
func (c Client) CreateEngagement(product Product) (*Engagement, error)
func (Client) CreateProduct ¶
func (c Client) CreateProduct(productName string, productType ProductType) (*Product, error)
func (Client) CreateProductType ¶
func (c Client) CreateProductType(productTypeName string) (*ProductType, error)
func (Client) CreateSLAConfiguration ¶
func (c Client) CreateSLAConfiguration(sla SLAConfiguration) (*SLAConfiguration, error)
func (Client) GetOrCreateDefaultSLAConfiguration ¶
func (c Client) GetOrCreateDefaultSLAConfiguration() (*SLAConfiguration, error)
func (Client) GetOrCreateProduct ¶
func (c Client) GetOrCreateProduct(productName string, productType ProductType) (*Product, error)
func (Client) GetOrCreateProductType ¶
func (c Client) GetOrCreateProductType(productTypeName string) (*ProductType, error)
func (Client) GetOrCreateSLAConfiguration ¶
func (c Client) GetOrCreateSLAConfiguration(config SLAConfiguration) (*SLAConfiguration, error)
func (Client) GetProductType ¶
func (c Client) GetProductType(productTypeName string) (*ProductType, error)
func (Client) GetSLAConfiguration ¶
func (c Client) GetSLAConfiguration(name string) (*SLAConfiguration, error)
func (Client) ImportScanResult ¶
func (c Client) ImportScanResult(engagement Engagement, resultPath string, scanType string) error
func (Client) IsAnySLAConfiguration ¶
type Engagement ¶
type GetProductTypesResult ¶
type GetProductTypesResult struct { Count int `json:"count"` Results []ProductType `json:"results"` }
type GetProductsResult ¶
type GetSLAConfigurationResult ¶
type GetSLAConfigurationResult struct { Count int `json:"count"` Results []SLAConfiguration `json:"results"` }
type ProductType ¶
type SLAConfiguration ¶
type SLAConfiguration struct { ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` Critical int `json:"critical"` High int `json:"high"` Medium int `json:"medium"` Low int `json:"low"` }
func GetDefaultSLAConfigurationParams ¶
func GetDefaultSLAConfigurationParams() SLAConfiguration
Click to show internal directories.
Click to hide internal directories.