Documentation ¶
Index ¶
- Constants
- type DockerProvider
- func (p *DockerProvider) Close() error
- func (p *DockerProvider) Deploy(ctx context.Context, req *pb.CreateFunctionRequest, cni *cninetwork.CNIManager) (*pb.Function, error)
- func (p *DockerProvider) Init(config *types.ProviderOption, log zerolog.Logger) error
- func (p *DockerProvider) Inspect(ctx context.Context, req *pb.GetFunctionRequest, cni *cninetwork.CNIManager) ([]*pb.Function, error)
- func (p *DockerProvider) Remove(ctx context.Context, req *pb.DeleteFunctionRequest, cni *cninetwork.CNIManager) error
- func (p *DockerProvider) Resolve(ctx context.Context, functionName string, cni *cninetwork.CNIManager) (url.URL, error)
- func (p *DockerProvider) ValidNamespace(namespace string) (bool, error)
Constants ¶
View Source
const ( StatusOK = iota StatusPaused = "paused" StatusRemove = "removing" StatusCreated = "created" StatusRunning = "running" StatusRestart = "restarting" StatusExited = "exited" StatusDead = "dead" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerProvider ¶
type DockerProvider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider() *DockerProvider
func (*DockerProvider) Close ¶
func (p *DockerProvider) Close() error
func (*DockerProvider) Deploy ¶
func (p *DockerProvider) Deploy(ctx context.Context, req *pb.CreateFunctionRequest, cni *cninetwork.CNIManager) (*pb.Function, error)
func (*DockerProvider) Init ¶
func (p *DockerProvider) Init(config *types.ProviderOption, log zerolog.Logger) error
func (*DockerProvider) Inspect ¶
func (p *DockerProvider) Inspect(ctx context.Context, req *pb.GetFunctionRequest, cni *cninetwork.CNIManager) ([]*pb.Function, error)
func (*DockerProvider) Remove ¶
func (p *DockerProvider) Remove(ctx context.Context, req *pb.DeleteFunctionRequest, cni *cninetwork.CNIManager) error
func (*DockerProvider) Resolve ¶
func (p *DockerProvider) Resolve(ctx context.Context, functionName string, cni *cninetwork.CNIManager) (url.URL, error)
func (*DockerProvider) ValidNamespace ¶
func (p *DockerProvider) ValidNamespace(namespace string) (bool, error)
Click to show internal directories.
Click to hide internal directories.