sample

package
v0.0.0-...-4760111 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrafficRouteType model.ResourceType = "SampleTrafficRoute"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TrafficRouteResource

type TrafficRouteResource struct {
	Meta model.ResourceMeta
	Spec proto.TrafficRoute
}

func (*TrafficRouteResource) Default

func (r *TrafficRouteResource) Default() error

func (*TrafficRouteResource) GetMeta

func (*TrafficRouteResource) GetSpec

func (*TrafficRouteResource) GetType

func (*TrafficRouteResource) SetMeta

func (t *TrafficRouteResource) SetMeta(m model.ResourceMeta)

func (*TrafficRouteResource) SetSpec

func (t *TrafficRouteResource) SetSpec(spec model.ResourceSpec) error

func (*TrafficRouteResource) Validate

func (t *TrafficRouteResource) Validate() error

type TrafficRouteResourceList

type TrafficRouteResourceList struct {
	Items      []*TrafficRouteResource
	Pagination model.Pagination
}

func (*TrafficRouteResourceList) AddItem

func (*TrafficRouteResourceList) GetItemType

func (l *TrafficRouteResourceList) GetItemType() model.ResourceType

func (*TrafficRouteResourceList) GetItems

func (l *TrafficRouteResourceList) GetItems() []model.Resource

func (*TrafficRouteResourceList) GetPagination

func (l *TrafficRouteResourceList) GetPagination() *model.Pagination

func (*TrafficRouteResourceList) NewItem

Jump to

Keyboard shortcuts

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