Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetResourceNameOrID ¶
func GetResourceNameOrID(resource interface{}) string
Types ¶
type IntOrString ¶
type IntOrString struct {
IntValue int `json:"int_value"`
}
IntOrString processing number and string types, after json deserialization will output int
func (*IntOrString) UnmarshalJSON ¶
func (ios *IntOrString) UnmarshalJSON(p []byte) error
type Route ¶
type Route interface {
Get(ctx context.Context, name string) (*types.Route, error)
List(ctx context.Context) ([]*types.Route, error)
Create(ctx context.Context, ups *types.Route) (*types.Route, error)
Delete(ctx context.Context, name string) error
Update(ctx context.Context, ups *types.Route) (*types.Route, error)
Validate(ctx context.Context, resource *types.Route) error
}
type Service ¶
type Service interface {
Get(ctx context.Context, name string) (*types.Service, error)
List(ctx context.Context) ([]*types.Service, error)
Create(ctx context.Context, ups *types.Service) (*types.Service, error)
Delete(ctx context.Context, name string) error
Update(ctx context.Context, ups *types.Service) (*types.Service, error)
Validate(ctx context.Context, resource *types.Service) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.