Documentation
¶
Index ¶
- type Platform
- func (p *Platform) CreateFunction(createFunctionOptions *platform.CreateFunctionOptions) (*platform.CreateFunctionResult, error)
- func (p *Platform) CreateFunctionEvent(createFunctionEventOptions *platform.CreateFunctionEventOptions) error
- func (p *Platform) CreateProject(createProjectOptions *platform.CreateProjectOptions) error
- func (p *Platform) DeleteFunction(deleteFunctionOptions *platform.DeleteFunctionOptions) error
- func (p *Platform) DeleteFunctionEvent(deleteFunctionEventOptions *platform.DeleteFunctionEventOptions) error
- func (p *Platform) DeleteProject(deleteProjectOptions *platform.DeleteProjectOptions) error
- func (p *Platform) GetDefaultInvokeIPAddresses() ([]string, error)
- func (p *Platform) GetExternalIPAddresses() ([]string, error)
- func (p *Platform) GetFunctionEvents(getFunctionEventsOptions *platform.GetFunctionEventsOptions) ([]platform.FunctionEvent, error)
- func (p *Platform) GetFunctions(getFunctionsOptions *platform.GetFunctionsOptions) ([]platform.Function, error)
- func (p *Platform) GetHealthCheckMode() platform.HealthCheckMode
- func (p *Platform) GetName() string
- func (p *Platform) GetNamespaces() ([]string, error)
- func (p *Platform) GetNodes() ([]platform.Node, error)
- func (p *Platform) GetProjects(getProjectsOptions *platform.GetProjectsOptions) ([]platform.Project, error)
- func (p *Platform) ResolveDefaultNamespace(defaultNamespace string) string
- func (p *Platform) UpdateFunction(updateFunctionOptions *platform.UpdateFunctionOptions) error
- func (p *Platform) UpdateFunctionEvent(updateFunctionEventOptions *platform.UpdateFunctionEventOptions) error
- func (p *Platform) UpdateProject(updateProjectOptions *platform.UpdateProjectOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
func NewPlatform ¶
NewPlatform instantiates a new local platform
func (*Platform) CreateFunction ¶
func (p *Platform) CreateFunction(createFunctionOptions *platform.CreateFunctionOptions) (*platform.CreateFunctionResult, error)
CreateFunction will simply run a docker image
func (*Platform) CreateFunctionEvent ¶
func (p *Platform) CreateFunctionEvent(createFunctionEventOptions *platform.CreateFunctionEventOptions) error
CreateFunctionEvent will create a new function event that can later be used as a template from which to invoke functions
func (*Platform) CreateProject ¶
func (p *Platform) CreateProject(createProjectOptions *platform.CreateProjectOptions) error
CreateProject will create a new project
func (*Platform) DeleteFunction ¶
func (p *Platform) DeleteFunction(deleteFunctionOptions *platform.DeleteFunctionOptions) error
DeleteFunction will delete a previously deployed function
func (*Platform) DeleteFunctionEvent ¶
func (p *Platform) DeleteFunctionEvent(deleteFunctionEventOptions *platform.DeleteFunctionEventOptions) error
DeleteFunctionEvent will delete a previously existing function event
func (*Platform) DeleteProject ¶
func (p *Platform) DeleteProject(deleteProjectOptions *platform.DeleteProjectOptions) error
DeleteProject will delete an existing project
func (*Platform) GetDefaultInvokeIPAddresses ¶
func (*Platform) GetExternalIPAddresses ¶
GetExternalIPAddresses returns the external IP addresses invocations will use, if "via" is set to "external-ip". These addresses are either set through SetExternalIPAddresses or automatically discovered
func (*Platform) GetFunctionEvents ¶
func (p *Platform) GetFunctionEvents(getFunctionEventsOptions *platform.GetFunctionEventsOptions) ([]platform.FunctionEvent, error)
GetFunctionEvents will list existing function events
func (*Platform) GetFunctions ¶
func (p *Platform) GetFunctions(getFunctionsOptions *platform.GetFunctionsOptions) ([]platform.Function, error)
GetFunctions will return deployed functions
func (*Platform) GetHealthCheckMode ¶
func (p *Platform) GetHealthCheckMode() platform.HealthCheckMode
GetHealthCheckMode returns the healthcheck mode the platform requires
func (*Platform) GetNamespaces ¶
GetNamespaces returns all the namespaces in the platform
func (*Platform) GetProjects ¶
func (p *Platform) GetProjects(getProjectsOptions *platform.GetProjectsOptions) ([]platform.Project, error)
GetProjects will list existing projects
func (*Platform) ResolveDefaultNamespace ¶
ResolveDefaultNamespace returns the proper default resource namespace, given the current default namespace
func (*Platform) UpdateFunction ¶
func (p *Platform) UpdateFunction(updateFunctionOptions *platform.UpdateFunctionOptions) error
UpdateFunction will update a previously deployed function
func (*Platform) UpdateFunctionEvent ¶
func (p *Platform) UpdateFunctionEvent(updateFunctionEventOptions *platform.UpdateFunctionEventOptions) error
UpdateFunctionEvent will update a previously existing function event
func (*Platform) UpdateProject ¶
func (p *Platform) UpdateProject(updateProjectOptions *platform.UpdateProjectOptions) error
UpdateProject will update an existing project