dojo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 New

func New(url string, token string) Client

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) GetProduct

func (c Client) GetProduct(productName string) (*Product, 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

func (c Client) IsAnySLAConfiguration() (bool, error)

type Engagement

type Engagement struct {
	ID        int `json:"id"`
	ProductID int `json:"product"`
}

type GetProductTypesResult

type GetProductTypesResult struct {
	Count   int           `json:"count"`
	Results []ProductType `json:"results"`
}

type GetProductsResult

type GetProductsResult struct {
	Count   int       `json:"count"`
	Results []Product `json:"results"`
}

type GetSLAConfigurationResult

type GetSLAConfigurationResult struct {
	Count   int                `json:"count"`
	Results []SLAConfiguration `json:"results"`
}

type Product

type Product struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type ProductType

type ProductType struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

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

Jump to

Keyboard shortcuts

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