api

package module
v0.0.0-...-4fecb06 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ApiDialTimeout = 30

Variables

This section is empty.

Functions

func ListAssets

func ListAssets(tenantID, zone, app string, activeVm, inactiveVm,
	activeContainer, inactiveContainer bool, startTime, endTime time.Time) (
	*araali_api_service.ListAssetsResponse, int, int, error)

ListAssets

func ListInsights

func ListInsights(tenantID, zone string) (
	*araali_api_service.ListInsightsResponse, error)

ListInsights

func ListLinks(tenantID, zone, app, service string, startTime, endTime time.Time) (
	*araali_api_service.ListLinksResponse, error)

ListLinks

func SetBackend

func SetBackend(b string)

func SetToken

func SetToken(t string)

func TenantCreate

func TenantCreate(name, adminName, adminEmail string, freemium bool) (*araali_api_service.CreateTenantResponse, error)

TenantCreate - returns tenant-id

func TenantDelete

func TenantDelete(tenantID string) (*araali_api_service.AraaliAPIResponse, error)

TenantDelete

func UserAdd

func UserAdd(tenantID, userName, userEmail, role string) (*araali_api_service.AraaliAPIResponse, error)

UserAdd

func UserDelete

func UserDelete(tenantID, userEmail string) (*araali_api_service.AraaliAPIResponse, error)

UserDelete

Types

type AlertPage

type AlertPage struct {
	PagingToken []byte
	Alerts      []*araali_api_service.Link
	// contains filtered or unexported fields
}

func ListAlerts

func ListAlerts(tenantID string, filter *araali_api_service.AlertFilter,
	count int32, pagingToken string) (AlertPage, error)

func (*AlertPage) HasNext

func (alertPage *AlertPage) HasNext() bool

func (*AlertPage) NextPage

func (alertPage *AlertPage) NextPage() ([]*araali_api_service.Link, error)

type FortifyAraaliHelmValues

type FortifyAraaliHelmValues struct {
	WorkloadId   string `yaml:"workload_id" json:"workload_id"`
	Fog          string `yaml:"fog" json:"fog"`
	Zone         string `yaml:"zone" json:"zone"`
	App          string `yaml:"app" json:"app"`
	AutoK8SImage string `yaml:"autok8s_image" json:"autok8s_image"`
	FwImage      string `yaml:"fw_image" json:"fw_image"`
	FwInitImage  string `yaml:"fw_init_image" json:"fw_init_image"`
	Enforce      bool   `yaml:"enforce" json:"enforce"`
	Upgrade      bool   `yaml:"upgrade" json:"upgrade"`
}

FortifyHelmValues

type FortifyHelmValues

type FortifyHelmValues struct {
	AHV FortifyAraaliHelmValues `yaml:"araali" json:"araali"`
}

func FortifyK8SCreateHelm

func FortifyK8SCreateHelm(tenantID, clusterName string) (*FortifyHelmValues, error)

FortifyK8SCreateHelm - Generates values.yaml for araali fortification helm chart

Jump to

Keyboard shortcuts

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