events

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagFile       = "file"
	FlagAdjustment = "adjustment-name"
	FlagFrom       = "from"
	FlagTo         = "to"
	FlagSloProject = "slo-project"
	FlagSloName    = "slo-name"
)
View Source
const BudgetAdjustmentAPI = "/budgetadjustments/v1"

Variables

This section is empty.

Functions

func DoRequest

func DoRequest(
	client *sdk.Client,
	ctx context.Context,
	method, endpoint string,
	values url.Values,
	body io.Reader,
) ([]byte, error)

func NewDeleteCmd

func NewDeleteCmd(clientProvider sdkclient.SdkClientProvider) *cobra.Command

func NewGetCmd

func NewGetCmd(clientProvider sdkclient.SdkClientProvider) *cobra.Command

func NewRootCmd

func NewRootCmd(clientProvider sdkclient.SdkClientProvider) *cobra.Command

func NewUpdateCmd

func NewUpdateCmd(clientProvider sdkclient.SdkClientProvider) *cobra.Command

Types

type DeleteCmd

type DeleteCmd struct {
	// contains filtered or unexported fields
}

type Event

type Event struct {
	EventStart string `json:"eventStart,omitempty" yaml:"eventStart,omitempty"`
	EventEnd   string `json:"eventEnd,omitempty"   yaml:"eventEnd,omitempty"`
	SLOs       []SLO  `json:"slos,omitempty"       yaml:"slos,omitempty"`
}

type GetCmd

type GetCmd struct {
	// contains filtered or unexported fields
}

type SLO

type SLO struct {
	Project string `json:"project,omitempty" yaml:"project,omitempty"`
	Name    string `json:"name,omitempty"    yaml:"name,omitempty"`
}

type UpdateCmd

type UpdateCmd struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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