configunstable

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Code generated by chronogen; DO NOT EDIT

Code generated by chronogen; DO NOT EDIT

Code generated by chronogen; DO NOT EDIT

Code generated by chronogen; DO NOT EDIT

Code generated by chronogen; DO NOT EDIT

Code generated by chronogen; DO NOT EDIT

Index

Constants

View Source
const DashboardScaffoldYAML = `` /* 505-byte string literal not displayed */
View Source
const LinkTemplateScaffoldYAML = `` /* 364-byte string literal not displayed */
View Source
const SavedTraceSearchScaffoldYAML = `` /* 8327-byte string literal not displayed */
View Source
const ServiceScaffoldYAML = `` /* 921-byte string literal not displayed */
View Source
const TraceTailSamplingRulesScaffoldYAML = `` /* 4244-byte string literal not displayed */

Variables

View Source
var DashboardTypeMeta = types.TypeMeta{
	APIVersion: "unstable/config",
	Kind:       "Dashboard",
}
View Source
var LinkTemplateTypeMeta = types.TypeMeta{
	APIVersion: "unstable/config",
	Kind:       "LinkTemplate",
}
View Source
var SavedTraceSearchTypeMeta = types.TypeMeta{
	APIVersion: "unstable/config",
	Kind:       "SavedTraceSearch",
}
View Source
var ServiceTypeMeta = types.TypeMeta{
	APIVersion: "unstable/config",
	Kind:       "Service",
}
View Source
var TraceTailSamplingRulesTypeMeta = types.TypeMeta{
	APIVersion: "unstable/config",
	Kind:       "TraceTailSamplingRules",
}

Functions

func AddCommandsTo

func AddCommandsTo(root *cobra.Command)

AddCommandsTo adds all entity subcommands to the given root command.

func ApplyMappings

func ApplyMappings() map[types.TypeMeta]func(context.Context, client.Clients, types.Object, bool) error

func DeleteDashboard

func DeleteDashboard(
	ctx context.Context,
	client config_unstable.ClientService,
	slug string,
) error

func DeleteLinkTemplate

func DeleteLinkTemplate(
	ctx context.Context,
	client config_unstable.ClientService,
	slug string,
) error

func DeleteSavedTraceSearch

func DeleteSavedTraceSearch(
	ctx context.Context,
	client config_unstable.ClientService,
	slug string,
) error

func DeleteService

func DeleteService(
	ctx context.Context,
	client config_unstable.ClientService,
	slug string,
) error

func DeleteTraceTailSamplingRules

func DeleteTraceTailSamplingRules(
	ctx context.Context,
	client config_unstable.ClientService,
) error

func NewDashboardCmd

func NewDashboardCmd() *cobra.Command

func NewLinkTemplateCmd

func NewLinkTemplateCmd() *cobra.Command

func NewSavedTraceSearchCmd

func NewSavedTraceSearchCmd() *cobra.Command

func NewServiceCmd

func NewServiceCmd() *cobra.Command

func NewTraceTailSamplingRulesCmd

func NewTraceTailSamplingRulesCmd() *cobra.Command

Types

type Dashboard

type Dashboard struct {
	types.TypeMeta `json:",inline"`
	Spec           *models.ConfigunstableDashboard `json:"spec"`
}

func CreateDashboard

func CreateDashboard(
	ctx context.Context,
	client config_unstable.ClientService,
	entity *Dashboard,
	dryRun bool,
) (*Dashboard, error)

func GetDashboard

func GetDashboard(
	ctx context.Context,
	client config_unstable.ClientService,
	slug string,
) (*Dashboard, error)

func NewDashboard

func NewDashboard(spec *models.ConfigunstableDashboard) *Dashboard

func UpdateDashboard

func UpdateDashboard(
	ctx context.Context,
	client config_unstable.ClientService,
	entity *Dashboard,
	opts UpdateOptions,
) (*Dashboard, error)

func (*Dashboard) Description

func (e *Dashboard) Description() string

func (*Dashboard) Identifier

func (e *Dashboard) Identifier() string

type DashboardListOpts

type DashboardListOpts struct {
	// Limit represents that maximum number of items we wish to return.
	Limit int
	// PageToken is the pagination token we want to start our request at.
	PageToken string
	// PageMaxSize is the maximum page size to use when making List calls.
	PageMaxSize          int
	CollectionSlugs      []string
	IncludeDashboardJSON bool
	Names                []string
	Slugs                []string
}

type LinkTemplate

type LinkTemplate struct {
	types.TypeMeta `json:",inline"`
	Spec           *models.ConfigunstableLinkTemplate `json:"spec"`
}

func CreateLinkTemplate

func CreateLinkTemplate(
	ctx context.Context,
	client config_unstable.ClientService,
	entity *LinkTemplate,
	dryRun bool,
) (*LinkTemplate, error)

func GetLinkTemplate

func GetLinkTemplate(
	ctx context.Context,
	client config_unstable.ClientService,
	slug string,
) (*LinkTemplate, error)

func UpdateLinkTemplate

func UpdateLinkTemplate(
	ctx context.Context,
	client config_unstable.ClientService,
	entity *LinkTemplate,
	opts UpdateOptions,
) (*LinkTemplate, error)

func (*LinkTemplate) Description

func (e *LinkTemplate) Description() string

func (*LinkTemplate) Identifier

func (e *LinkTemplate) Identifier() string

type LinkTemplateListOpts

type LinkTemplateListOpts struct {
	// Limit represents that maximum number of items we wish to return.
	Limit int
	// PageToken is the pagination token we want to start our request at.
	PageToken string
	// PageMaxSize is the maximum page size to use when making List calls.
	PageMaxSize  int
	Names        []string
	Slugs        []string
	UIComponents []string
}

type SavedTraceSearch

type SavedTraceSearch struct {
	types.TypeMeta `json:",inline"`
	Spec           *models.ConfigunstableSavedTraceSearch `json:"spec"`
}

func CreateSavedTraceSearch

func CreateSavedTraceSearch(
	ctx context.Context,
	client config_unstable.ClientService,
	entity *SavedTraceSearch,
	dryRun bool,
) (*SavedTraceSearch, error)

func GetSavedTraceSearch

func GetSavedTraceSearch(
	ctx context.Context,
	client config_unstable.ClientService,
	slug string,
) (*SavedTraceSearch, error)

func UpdateSavedTraceSearch

func UpdateSavedTraceSearch(
	ctx context.Context,
	client config_unstable.ClientService,
	entity *SavedTraceSearch,
	opts UpdateOptions,
) (*SavedTraceSearch, error)

func (*SavedTraceSearch) Description

func (e *SavedTraceSearch) Description() string

func (*SavedTraceSearch) Identifier

func (e *SavedTraceSearch) Identifier() string

type SavedTraceSearchListOpts

type SavedTraceSearchListOpts struct {
	// Limit represents that maximum number of items we wish to return.
	Limit int
	// PageToken is the pagination token we want to start our request at.
	PageToken string
	// PageMaxSize is the maximum page size to use when making List calls.
	PageMaxSize int
	CreatedBy   string
	Names       []string
	Slugs       []string
}

type Service

type Service struct {
	types.TypeMeta `json:",inline"`
	Spec           *models.ConfigunstableService `json:"spec"`
}

func CreateService

func CreateService(
	ctx context.Context,
	client config_unstable.ClientService,
	entity *Service,
	dryRun bool,
) (*Service, error)

func GetService

func GetService(
	ctx context.Context,
	client config_unstable.ClientService,
	slug string,
) (*Service, error)

func NewService

func NewService(spec *models.ConfigunstableService) *Service

func UpdateService

func UpdateService(
	ctx context.Context,
	client config_unstable.ClientService,
	entity *Service,
	opts UpdateOptions,
) (*Service, error)

func (*Service) Description

func (e *Service) Description() string

func (*Service) Identifier

func (e *Service) Identifier() string

type ServiceListOpts

type ServiceListOpts struct {
	// Limit represents that maximum number of items we wish to return.
	Limit int
	// PageToken is the pagination token we want to start our request at.
	PageToken string
	// PageMaxSize is the maximum page size to use when making List calls.
	PageMaxSize             int
	Names                   []string
	NotificationPolicySlugs []string
	Slugs                   []string
	TeamSlugs               []string
}

type TraceTailSamplingRules

type TraceTailSamplingRules struct {
	types.TypeMeta `json:",inline"`
	Spec           *models.ConfigunstableTraceTailSamplingRules `json:"spec"`
}

func CreateTraceTailSamplingRules

func CreateTraceTailSamplingRules(
	ctx context.Context,
	client config_unstable.ClientService,
	entity *TraceTailSamplingRules,
	dryRun bool,
) (*TraceTailSamplingRules, error)

func GetTraceTailSamplingRules

func GetTraceTailSamplingRules(
	ctx context.Context,
	client config_unstable.ClientService,
) (*TraceTailSamplingRules, error)

func (*TraceTailSamplingRules) Description

func (e *TraceTailSamplingRules) Description() string

func (*TraceTailSamplingRules) Identifier

func (e *TraceTailSamplingRules) Identifier() string

type UpdateOptions

type UpdateOptions struct {
	DryRun          bool
	CreateIfMissing bool
}

UpdateOptions represents the request level options for update.

Jump to

Keyboard shortcuts

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