Documentation
¶
Index ¶
- Constants
- type API
- func (api *API) EnvironmentApiCreate(w http.ResponseWriter, r *http.Request)
- func (api *API) EnvironmentApiDelete(w http.ResponseWriter, r *http.Request)
- func (api *API) EnvironmentApiGet(w http.ResponseWriter, r *http.Request)
- func (api *API) EnvironmentApiList(w http.ResponseWriter, r *http.Request)
- func (api *API) EnvironmentApiUpdate(w http.ResponseWriter, r *http.Request)
- func (api *API) FunctionApiCreate(w http.ResponseWriter, r *http.Request)
- func (api *API) FunctionApiDelete(w http.ResponseWriter, r *http.Request)
- func (api *API) FunctionApiGet(w http.ResponseWriter, r *http.Request)
- func (api *API) FunctionApiList(w http.ResponseWriter, r *http.Request)
- func (api *API) FunctionApiUpdate(w http.ResponseWriter, r *http.Request)
- func (api *API) HTTPTriggerApiCreate(w http.ResponseWriter, r *http.Request)
- func (api *API) HTTPTriggerApiDelete(w http.ResponseWriter, r *http.Request)
- func (api *API) HTTPTriggerApiGet(w http.ResponseWriter, r *http.Request)
- func (api *API) HTTPTriggerApiList(w http.ResponseWriter, r *http.Request)
- func (api *API) HTTPTriggerApiUpdate(w http.ResponseWriter, r *http.Request)
- func (api *API) HomeHandler(w http.ResponseWriter, r *http.Request)
- func (api *API) Serve(port int)
- type EnvironmentStore
- func (es *EnvironmentStore) Create(e *fission.Environment) (string, error)
- func (es *EnvironmentStore) Delete(m fission.Metadata) error
- func (es *EnvironmentStore) Get(m *fission.Metadata) (*fission.Environment, error)
- func (es *EnvironmentStore) List() ([]fission.Environment, error)
- func (es *EnvironmentStore) Update(e *fission.Environment) (string, error)
- type FileStore
- type FunctionStore
- func (fs *FunctionStore) Create(f *fission.Function) (string, error)
- func (fs *FunctionStore) Delete(m fission.Metadata) error
- func (fs *FunctionStore) Get(m *fission.Metadata) (*fission.Function, error)
- func (fs *FunctionStore) List() ([]fission.Function, error)
- func (fs *FunctionStore) Update(f *fission.Function) (string, error)
- type HTTPTriggerStore
- func (hts *HTTPTriggerStore) Create(ht *fission.HTTPTrigger) (string, error)
- func (hts *HTTPTriggerStore) Delete(m fission.Metadata) error
- func (hts *HTTPTriggerStore) Get(m *fission.Metadata) (*fission.HTTPTrigger, error)
- func (hts *HTTPTriggerStore) List() ([]fission.HTTPTrigger, error)
- func (hts *HTTPTriggerStore) Update(ht *fission.HTTPTrigger) (string, error)
- type JsonSerializer
- type ResourceStore
Constants ¶
View Source
const ( READ requestType = iota WRITE DELETE )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { FunctionStore HTTPTriggerStore EnvironmentStore }
func (*API) EnvironmentApiCreate ¶
func (api *API) EnvironmentApiCreate(w http.ResponseWriter, r *http.Request)
func (*API) EnvironmentApiDelete ¶
func (api *API) EnvironmentApiDelete(w http.ResponseWriter, r *http.Request)
func (*API) EnvironmentApiGet ¶
func (api *API) EnvironmentApiGet(w http.ResponseWriter, r *http.Request)
func (*API) EnvironmentApiList ¶
func (api *API) EnvironmentApiList(w http.ResponseWriter, r *http.Request)
func (*API) EnvironmentApiUpdate ¶
func (api *API) EnvironmentApiUpdate(w http.ResponseWriter, r *http.Request)
func (*API) FunctionApiCreate ¶
func (api *API) FunctionApiCreate(w http.ResponseWriter, r *http.Request)
func (*API) FunctionApiDelete ¶
func (api *API) FunctionApiDelete(w http.ResponseWriter, r *http.Request)
func (*API) FunctionApiGet ¶
func (api *API) FunctionApiGet(w http.ResponseWriter, r *http.Request)
func (*API) FunctionApiList ¶
func (api *API) FunctionApiList(w http.ResponseWriter, r *http.Request)
func (*API) FunctionApiUpdate ¶
func (api *API) FunctionApiUpdate(w http.ResponseWriter, r *http.Request)
func (*API) HTTPTriggerApiCreate ¶
func (api *API) HTTPTriggerApiCreate(w http.ResponseWriter, r *http.Request)
func (*API) HTTPTriggerApiDelete ¶
func (api *API) HTTPTriggerApiDelete(w http.ResponseWriter, r *http.Request)
func (*API) HTTPTriggerApiGet ¶
func (api *API) HTTPTriggerApiGet(w http.ResponseWriter, r *http.Request)
func (*API) HTTPTriggerApiList ¶
func (api *API) HTTPTriggerApiList(w http.ResponseWriter, r *http.Request)
func (*API) HTTPTriggerApiUpdate ¶
func (api *API) HTTPTriggerApiUpdate(w http.ResponseWriter, r *http.Request)
func (*API) HomeHandler ¶
func (api *API) HomeHandler(w http.ResponseWriter, r *http.Request)
type EnvironmentStore ¶
type EnvironmentStore struct {
ResourceStore
}
func (*EnvironmentStore) Create ¶
func (es *EnvironmentStore) Create(e *fission.Environment) (string, error)
func (*EnvironmentStore) Get ¶
func (es *EnvironmentStore) Get(m *fission.Metadata) (*fission.Environment, error)
func (*EnvironmentStore) List ¶
func (es *EnvironmentStore) List() ([]fission.Environment, error)
func (*EnvironmentStore) Update ¶
func (es *EnvironmentStore) Update(e *fission.Environment) (string, error)
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
func MakeFileStore ¶
type HTTPTriggerStore ¶
type HTTPTriggerStore struct {
ResourceStore
}
func (*HTTPTriggerStore) Create ¶
func (hts *HTTPTriggerStore) Create(ht *fission.HTTPTrigger) (string, error)
func (*HTTPTriggerStore) Get ¶
func (hts *HTTPTriggerStore) Get(m *fission.Metadata) (*fission.HTTPTrigger, error)
func (*HTTPTriggerStore) List ¶
func (hts *HTTPTriggerStore) List() ([]fission.HTTPTrigger, error)
func (*HTTPTriggerStore) Update ¶
func (hts *HTTPTriggerStore) Update(ht *fission.HTTPTrigger) (string, error)
type JsonSerializer ¶
type JsonSerializer struct { }
type ResourceStore ¶
func MakeResourceStore ¶
func MakeResourceStore(fs *FileStore, etcdUrls []string) (*ResourceStore, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.