Documentation ¶
Index ¶
- Constants
- type TrafficRouteResource
- func (r *TrafficRouteResource) Default() error
- func (t *TrafficRouteResource) GetMeta() model.ResourceMeta
- func (t *TrafficRouteResource) GetSpec() model.ResourceSpec
- func (t *TrafficRouteResource) GetType() model.ResourceType
- func (t *TrafficRouteResource) SetMeta(m model.ResourceMeta)
- func (t *TrafficRouteResource) SetSpec(spec model.ResourceSpec) error
- func (t *TrafficRouteResource) Validate() error
- type TrafficRouteResourceList
- func (l *TrafficRouteResourceList) AddItem(r model.Resource) error
- func (l *TrafficRouteResourceList) GetItemType() model.ResourceType
- func (l *TrafficRouteResourceList) GetItems() []model.Resource
- func (l *TrafficRouteResourceList) GetPagination() *model.Pagination
- func (l *TrafficRouteResourceList) NewItem() model.Resource
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 (t *TrafficRouteResource) GetMeta() model.ResourceMeta
func (*TrafficRouteResource) GetSpec ¶
func (t *TrafficRouteResource) GetSpec() model.ResourceSpec
func (*TrafficRouteResource) GetType ¶
func (t *TrafficRouteResource) GetType() model.ResourceType
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 (l *TrafficRouteResourceList) AddItem(r model.Resource) error
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 ¶
func (l *TrafficRouteResourceList) NewItem() model.Resource
Click to show internal directories.
Click to hide internal directories.