Documentation
¶
Index ¶
- func BuildRoutes(service interface{}, apiPrefix string) ([]*endly.Route, error)
- func Init(context *endly.Context, rawRequest map[string]interface{}) error
- func LookupAPIVersion(kind string) (string, error)
- func Register(adapter ContractAdapter)
- type ContractAdapter
- type CtxClient
- type KindMethodMeta
- type KindOperations
- type OutputEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupAPIVersion ¶
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
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 ¶
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)
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.