dashboard

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 9 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 interface {
	CurrentUser(ctx context.Context) (CurrentUser, error)
	RunParameters(ctx context.Context, repoURL, branchName string) (RunParameters, error)
	HasRepo(ctx context.Context, orgID, repoName string) (bool, error)
}

type Config

type Config struct {
	Environment string `flagvalue:"environment"`
	Endpoint    string `env:"INFRACOST_CLI_DASHBOARD_ENDPOINT" flag:"dashboard-endpoint;hidden" usage:"The endpoint for the Infracost dashboard"`

	// Can override this in tests.
	Client func(httpClient *http.Client) Client
}

func (*Config) Process added in v0.0.3

func (c *Config) Process()

type CurrentUser added in v0.0.12

type CurrentUser struct {
	ID            string         `json:"id"`
	Name          string         `json:"name"`
	Email         string         `json:"email"`
	Organizations []Organization `json:"organizations"`
}

type Organization added in v0.0.12

type Organization struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Slug  string `json:"slug"`
	Roles []Role `json:"roles"`
}

type Role added in v0.0.12

type Role struct {
	ID string `json:"id"`
}

type RunParameters

type RunParameters struct {
	OrganizationID string `json:"organizationId"`
	RepositoryName string `json:"repositoryName"`

	UsageDefaults     json.RawMessage   `json:"usageDefaults"`
	ProductionFilters []json.RawMessage `json:"productionFilters"`
	TagPolicies       []json.RawMessage `json:"tagPolicies"`
	FinopsPolicies    []json.RawMessage `json:"finopsPolicies"`
	Guardrails        []json.RawMessage `json:"guardrails"`
	Budgets           []json.RawMessage `json:"budgets"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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