Documentation ¶
Index ¶
- Constants
- func IsNameExistError(err error) bool
- func IsNotFoundError(err error) bool
- type FuncSvc
- type FunctionServiceCache
- func (fsc *FunctionServiceCache) Add(fsvc FuncSvc) (*FuncSvc, error)
- func (fsc *FunctionServiceCache) DeleteOld(fsvc *FuncSvc, minAge time.Duration) (bool, error)
- func (fsc *FunctionServiceCache) GetByFunction(m *metav1.ObjectMeta) (*FuncSvc, error)
- func (fsc *FunctionServiceCache) GetByFunctionUID(uid types.UID) (*FuncSvc, error)
- func (fsc *FunctionServiceCache) ListOld(env *metav1.ObjectMeta, age time.Duration) ([]*FuncSvc, error)
- func (fsc *FunctionServiceCache) Log()
- func (fsc *FunctionServiceCache) TouchByAddress(address string) error
Constants ¶
View Source
const ( TOUCH fscRequestType = iota LISTOLD LOG )
View Source
const ( POOLMGR executorType = iota NEWDEPLOY )
Variables ¶
This section is empty.
Functions ¶
func IsNameExistError ¶ added in v0.6.1
func IsNotFoundError ¶ added in v0.6.1
Types ¶
type FuncSvc ¶
type FuncSvc struct { Name string // Name of object Function *metav1.ObjectMeta // function this pod/service is for Environment *crd.Environment // function's environment Address string // Host:Port or IP:Port that the function's service can be reached at. KubernetesObjects []api.ObjectReference // Kubernetes Objects (within the function namespace) Executor executorType Ctime time.Time Atime time.Time }
type FunctionServiceCache ¶
type FunctionServiceCache struct {
// contains filtered or unexported fields
}
func MakeFunctionServiceCache ¶
func MakeFunctionServiceCache() *FunctionServiceCache
func (*FunctionServiceCache) Add ¶
func (fsc *FunctionServiceCache) Add(fsvc FuncSvc) (*FuncSvc, error)
func (*FunctionServiceCache) GetByFunction ¶
func (fsc *FunctionServiceCache) GetByFunction(m *metav1.ObjectMeta) (*FuncSvc, error)
func (*FunctionServiceCache) GetByFunctionUID ¶ added in v0.6.1
func (fsc *FunctionServiceCache) GetByFunctionUID(uid types.UID) (*FuncSvc, error)
func (*FunctionServiceCache) ListOld ¶
func (fsc *FunctionServiceCache) ListOld(env *metav1.ObjectMeta, age time.Duration) ([]*FuncSvc, error)
func (*FunctionServiceCache) Log ¶
func (fsc *FunctionServiceCache) Log()
func (*FunctionServiceCache) TouchByAddress ¶
func (fsc *FunctionServiceCache) TouchByAddress(address string) error
Click to show internal directories.
Click to hide internal directories.