platform

package
v0.26.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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() *Client

func (*Client) CreateSASTTask added in v0.23.3

func (c *Client) CreateSASTTask() (map[string]any, error)

func (*Client) CreateSecurityTask added in v0.18.2

func (c *Client) CreateSecurityTask() (map[string]any, error)

func (*Client) Do

func (c *Client) Do() (Response, error)

func (*Client) GetCommitAuthor added in v0.26.0

func (c *Client) GetCommitAuthor() (string, error)

func (*Client) SendDependencies added in v0.24.5

func (c *Client) SendDependencies() (map[string]any, error)

func (*Client) SetCommitAuthorRequest added in v0.26.0

func (c *Client) SetCommitAuthorRequest(request CommitAuthorRequest)

func (*Client) SetDependenciesRequest added in v0.24.5

func (c *Client) SetDependenciesRequest(request DependenciesRequest)

func (*Client) SetRequest

func (c *Client) SetRequest(request Request)

func (*Client) SetSASTFixRequest added in v0.23.3

func (c *Client) SetSASTFixRequest(request SASTFixRequest)

func (*Client) SetSecurityFixRequest added in v0.18.2

func (c *Client) SetSecurityFixRequest(request SecurityFixRequest)

type CommitAuthorRequest added in v0.26.0

type CommitAuthorRequest struct {
	BitbucketProject string `json:"bitbucketProject"`
	Repository       string `json:"repository"`
	CommitId         string `json:"commitId"`
}

type Context

type Context struct {
	Project    string `json:"project"`
	Repository string `json:"repository"`
	Branch     string `json:"branch"`
	ThreadTs   string `json:"thread_ts"`
}

type DependenciesRequest added in v0.24.5

type DependenciesRequest struct {
	Dependencies []Dependency `json:"dependencies"`
}

type Dependency added in v0.24.5

type Dependency struct {
	Repository string         `json:"repository"`
	Name       string         `json:"name"`
	Version    string         `json:"version"`
	Language   string         `json:"language"`
	Data       map[string]any `json:"data"`
}

type Request

type Request struct {
	Language string         `json:"language"`
	RunAt    string         `json:"runAt"`
	Build    int            `json:"build"`
	Analyser map[string]any `json:"analyser"`
	Context  Context        `json:"context"`
}

type Response

type Response struct {
}

type SASTFixRequest added in v0.23.3

type SASTFixRequest struct {
	Description      string `json:"description"`
	BitbucketProject string `json:"bitbucketProject"`
	Repository       string `json:"repository"`
	Language         string `json:"language"`
}

type SecurityFixRequest added in v0.18.2

type SecurityFixRequest struct {
	Description      string `json:"description"`
	BitbucketProject string `json:"bitbucketProject"`
	Repository       string `json:"repository"`
	Language         string `json:"language"`
}

Jump to

Keyboard shortcuts

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