Documentation ¶
Index ¶
- func BuildRoutes(service interface{}, apiPrefix string) ([]*endly.Route, error)
- func BuildRoutesWithPrefix(service interface{}, apiPrefix, actionPrefix string) ([]*endly.Route, error)
- func Init(context *endly.Context, rawRequest map[string]interface{}) error
- func IsNotFound(candidate interface{}) bool
- func LookupAPIVersion(kind string) (string, error)
- func LookupAPIVersions(kind string) ([]string, error)
- func MatchedMetaTypes(kinds ...string) []string
- func MetaTypes() []string
- func Register(adapter ContractAdapter)
- func ResourceListToInterface(target, source interface{}) error
- func TextToQuantity(target, source interface{}) error
- func ToSelector(selectorMap map[string]string) string
- type ContractAdapter
- type CtxClient
- type KindMethodMeta
- type KindOperations
- type NotFound
- type OutputEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRoutes ¶
BuildRoutes build routes
func BuildRoutesWithPrefix ¶ added in v0.31.0
func IsNotFound ¶ added in v0.31.0
func IsNotFound(candidate interface{}) bool
IsNotFound returns true if error is not found
func LookupAPIVersion ¶
func LookupAPIVersions ¶ added in v0.31.0
func MatchedMetaTypes ¶ added in v0.31.0
MatchedMetaTypes returns matched kinds
func ResourceListToInterface ¶ added in v0.33.0
func ResourceListToInterface(target, source interface{}) error
func TextToQuantity ¶ added in v0.33.0
func TextToQuantity(target, source interface{}) error
func ToSelector ¶ added in v0.33.0
ToSelector returns selector
Types ¶
type ContractAdapter ¶
type ContractAdapter interface { SetService(service interface{}) error Call() (result interface{}, err error) GetId() string }
ContractAdapter represents a contract adapter
type CtxClient ¶
type CtxClient struct { CredConfig *cred.Config Namespace string ResetConfig *rest.Config RawRequest map[string]interface{} // contains filtered or unexported fields }
CtxClient represents generic google cloud service client
func GetCtxClient ¶
GetCtxClient get or creates a new kubernetess client.
func (*CtxClient) ConfigPath ¶
func (*CtxClient) EndpointIP ¶ added in v0.33.0
type KindMethodMeta ¶
func NewKindMethodMeta ¶
func NewKindMethodMeta(id string) *KindMethodMeta
type KindOperations ¶
type KindOperations struct { metav1.TypeMeta Methods map[string]ContractAdapter }
func Lookup ¶
func Lookup(apiVersion, kind string) (*KindOperations, error)
Lookup returns KindOperations with all defined operations or error
func (*KindOperations) Lookup ¶
func (r *KindOperations) Lookup(method string) (ContractAdapter, error)
func (*KindOperations) NewRequest ¶ added in v0.31.0
func (r *KindOperations) NewRequest(method string, requestData interface{}) (interface{}, error)
type NotFound ¶ added in v0.31.0
type NotFound struct {
Message string
}
NotFound represents not found error
type OutputEvent ¶
func NewOutputEvent ¶
func NewOutputEvent(message string, tag string, value interface{}) *OutputEvent
func (*OutputEvent) Messages ¶
func (e *OutputEvent) Messages() []*msg.Message
Click to show internal directories.
Click to hide internal directories.