trafficcontrol

package
v0.277.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BudgetCreateCmd

func BudgetCreateCmd(ch *cmdutil.Helper) *cobra.Command

func BudgetDeleteCmd

func BudgetDeleteCmd(ch *cmdutil.Helper) *cobra.Command

func BudgetShowCmd

func BudgetShowCmd(ch *cmdutil.Helper) *cobra.Command

func BudgetUpdateCmd

func BudgetUpdateCmd(ch *cmdutil.Helper) *cobra.Command

func RuleCreateCmd

func RuleCreateCmd(ch *cmdutil.Helper) *cobra.Command

func RuleDeleteCmd

func RuleDeleteCmd(ch *cmdutil.Helper) *cobra.Command

func TrafficCmd

func TrafficCmd(ch *cmdutil.Helper) *cobra.Command

Types

type TrafficBudget

type TrafficBudget struct {
	ID          string `header:"id" json:"id"`
	Name        string `header:"name" json:"name"`
	Mode        string `header:"mode" json:"mode"`
	Capacity    string `header:"capacity" json:"capacity"`
	Rate        string `header:"rate" json:"rate"`
	Burst       string `header:"burst" json:"burst"`
	Concurrency string `header:"concurrency" json:"concurrency"`
	CreatedAt   int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt   int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	// contains filtered or unexported fields
}

func (*TrafficBudget) MarshalCSVValue

func (b *TrafficBudget) MarshalCSVValue() any

func (*TrafficBudget) MarshalJSON

func (b *TrafficBudget) MarshalJSON() ([]byte, error)

type TrafficRuleDisplay

type TrafficRuleDisplay struct {
	ID          string `header:"id" json:"id"`
	Kind        string `header:"kind" json:"kind"`
	Fingerprint string `header:"fingerprint" json:"fingerprint"`
	Keyspace    string `header:"keyspace" json:"keyspace"`
	Tags        string `header:"tags" json:"tags"`
	CreatedAt   int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt   int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	// contains filtered or unexported fields
}

func (*TrafficRuleDisplay) MarshalCSVValue

func (r *TrafficRuleDisplay) MarshalCSVValue() any

func (*TrafficRuleDisplay) MarshalJSON

func (r *TrafficRuleDisplay) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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