Help us shape the future of Go! Take the 2026 Go Developer Survey

eramba

package module
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 11 Imported by: 0

README

eramba go client

[!IMPORTANT] This is a early version not all API's are supported and tested.

Supported APIs

Type Methods
Assets Get, Index, Patch, Post, Delete
Asset Reviews Index
Security Policies Index, Patch
Security Policy Reviews Index, Patch, Post
Projects Index, Patch, Post
Project Comments Post
Risk Exceptions Get, Index, Patch, Post
Risks Get, Index, Patch, Post
Risk Reviews Index, Patch, Post
Risk Threats Get, Index
Security Services Get, Index, Patch
Security Service Comments Index
Third Party Risks Get, Index, Patch
Third Party Risk Reviews Index, Post
Custom Fields

Currently only supported on Projects.

Disclaimer

This project is not associated with Eramba LTD.

Documentation

Index

Constants

View Source
const (
	PageSize              = 200
	DefaultTimeoutSeconds = 30
)

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(erambaUrl, username, password string) Client

func (*Client) BaseUrl

func (a *Client) BaseUrl() string

func (*Client) DeleteAsset

func (a *Client) DeleteAsset(ctx context.Context, id int32) error

func (*Client) GetAsset

func (a *Client) GetAsset(ctx context.Context, id int32) (model.Asset, error)

func (*Client) GetAssetReviews

func (a *Client) GetAssetReviews(ctx context.Context) ([]model.Review, error)

func (*Client) GetAssets

func (a *Client) GetAssets(ctx context.Context) ([]model.Asset, error)

func (*Client) GetGroup added in v0.2.3

func (a *Client) GetGroup(ctx context.Context, id int32) (model.Group, error)

func (*Client) GetGroups added in v0.2.3

func (a *Client) GetGroups(ctx context.Context) ([]model.Group, error)

func (*Client) GetProjects

func (a *Client) GetProjects(ctx context.Context) ([]model.Project, error)

func (*Client) GetRisk

func (a *Client) GetRisk(ctx context.Context, id int32) (model.Risk, error)

func (*Client) GetRiskException

func (a *Client) GetRiskException(ctx context.Context, id int32) (model.RiskException, error)

func (*Client) GetRiskExceptions

func (a *Client) GetRiskExceptions(ctx context.Context) ([]model.RiskException, error)

func (*Client) GetRiskReviews

func (a *Client) GetRiskReviews(ctx context.Context) ([]model.Review, error)

func (*Client) GetRiskThreat

func (a *Client) GetRiskThreat(ctx context.Context, id int32) (model.RiskThreat, error)

func (*Client) GetRiskThreats

func (a *Client) GetRiskThreats(ctx context.Context) ([]model.RiskThreat, error)

func (*Client) GetRisks

func (a *Client) GetRisks(ctx context.Context) ([]model.Risk, error)

func (*Client) GetSecurityPolicies

func (a *Client) GetSecurityPolicies(ctx context.Context) ([]model.SecurityPolicy, error)

func (*Client) GetSecurityPolicyReviews

func (a *Client) GetSecurityPolicyReviews(ctx context.Context) ([]model.SecurityPolicyReview, error)

func (*Client) GetSecurityService

func (a *Client) GetSecurityService(ctx context.Context, id int32) (model.SecurityService, error)

func (*Client) GetSecurityServiceComments

func (a *Client) GetSecurityServiceComments(ctx context.Context, id int32) ([]model.Comment, error)

func (*Client) GetSecurityServices

func (a *Client) GetSecurityServices(ctx context.Context) ([]model.SecurityService, error)

func (*Client) GetThirdPartyRisk

func (a *Client) GetThirdPartyRisk(ctx context.Context, id int32) (model.ThirdPartyRisk, error)

func (*Client) GetThirdPartyRiskReviews

func (a *Client) GetThirdPartyRiskReviews(ctx context.Context) ([]model.Review, error)

func (*Client) GetThirdPartyRisks

func (a *Client) GetThirdPartyRisks(ctx context.Context) ([]model.ThirdPartyRisk, error)

func (*Client) GetUser added in v0.2.3

func (a *Client) GetUser(ctx context.Context, id int32) (model.User, error)

func (*Client) GetUsers added in v0.2.3

func (a *Client) GetUsers(ctx context.Context) ([]model.User, error)

func (*Client) PatchAsset

func (a *Client) PatchAsset(ctx context.Context, id int32, data *model.Asset) (*model.Asset, error)

func (*Client) PatchProject

func (a *Client) PatchProject(ctx context.Context, id int32, data *model.Project) (*model.Project, error)

func (*Client) PatchRisk

func (a *Client) PatchRisk(ctx context.Context, id int32, data *model.Risk) (*model.Risk, error)

func (*Client) PatchRiskException

func (a *Client) PatchRiskException(
	ctx context.Context,
	id int32,
	data *model.RiskException,
) (*model.RiskException, error)

func (*Client) PatchRiskReview

func (a *Client) PatchRiskReview(ctx context.Context, id int32, data *model.Review) (*model.Review, error)

func (*Client) PatchSecurityPolicy

func (a *Client) PatchSecurityPolicy(
	ctx context.Context,
	id int32,
	data *model.SecurityPolicy,
) (*model.SecurityPolicy, error)

func (*Client) PatchSecurityPolicyReview

func (a *Client) PatchSecurityPolicyReview(
	ctx context.Context,
	id int32,
	data *model.SecurityPolicyReview,
) (*model.SecurityPolicyReview, error)

func (*Client) PatchSecurityService

func (a *Client) PatchSecurityService(
	ctx context.Context,
	id int32,
	data *model.SecurityService,
) (*model.SecurityService, error)

func (*Client) PatchThirdPartyRisk

func (a *Client) PatchThirdPartyRisk(
	ctx context.Context,
	id int32,
	data *model.ThirdPartyRisk,
) (*model.ThirdPartyRisk, error)

func (*Client) PostAsset

func (a *Client) PostAsset(ctx context.Context, data *model.Asset) (*model.Asset, error)

func (*Client) PostProject

func (a *Client) PostProject(ctx context.Context, data *model.Project) (*model.Project, error)

func (*Client) PostProjectComment

func (a *Client) PostProjectComment(ctx context.Context, id int32, data *model.Comment) (*model.Comment, error)

func (*Client) PostRisk

func (a *Client) PostRisk(ctx context.Context, data *model.Risk) (*model.Risk, error)

func (*Client) PostRiskException

func (a *Client) PostRiskException(ctx context.Context, data *model.RiskException) (*model.RiskException, error)

func (*Client) PostRiskReview

func (a *Client) PostRiskReview(ctx context.Context, data *model.Review) (*model.Review, error)

func (*Client) PostSecurityPolicyReview

func (a *Client) PostSecurityPolicyReview(
	ctx context.Context,
	data *model.SecurityPolicyReview,
) (*model.SecurityPolicyReview, error)

func (*Client) PostThirdPartyRiskReview

func (a *Client) PostThirdPartyRiskReview(ctx context.Context, data *model.Review) (*model.Review, error)

type Pagination

type Pagination struct {
	HasNextPage bool  `json:"has_next_page"`
	CurrentPage int32 `json:"current_page"`
}

Directories

Path Synopsis
examples
basic command
custom_fields command
users command

Jump to

Keyboard shortcuts

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