Fargate: Add stubs for new provider APIs
This commit is contained in:
@@ -63,7 +63,7 @@ func (p *FargateProvider) loadConfigFile(filePath string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// loadConfigStream loads the given Fargate provider TOML configuration stream.
|
// loadConfig loads the given Fargate provider TOML configuration stream.
|
||||||
func (p *FargateProvider) loadConfig(r io.Reader) error {
|
func (p *FargateProvider) loadConfig(r io.Reader) error {
|
||||||
var config providerConfig
|
var config providerConfig
|
||||||
var q resource.Quantity
|
var q resource.Quantity
|
||||||
|
|||||||
@@ -178,17 +178,18 @@ func (p *FargateProvider) GetContainerLogs(namespace, podName, containerName str
|
|||||||
return p.cluster.GetContainerLogs(namespace, podName, containerName, tail)
|
return p.cluster.GetContainerLogs(namespace, podName, containerName, tail)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get full pod name as defined in the provider context
|
// GetPodFullName retrieves the full pod name as defined in the provider context.
|
||||||
func (p *FargateProvider) GetPodFullName(namespace string, pod string) string {
|
func (p *FargateProvider) GetPodFullName(namespace string, pod string) string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExecInContainer executes a command in a container in the pod, copying data
|
// ExecInContainer executes a command in a container in the pod, copying data
|
||||||
// between in/out/err and the container's stdin/stdout/stderr.
|
// between in/out/err and the container's stdin/stdout/stderr.
|
||||||
// TODO: Implementation
|
func (p *FargateProvider) ExecInContainer(
|
||||||
func (p *FargateProvider) ExecInContainer(name string, uid types.UID, container string, cmd []string, in io.Reader, out, err io.WriteCloser, tty bool, resize <-chan remotecommand.TerminalSize, timeout time.Duration) error {
|
name string, uid types.UID, container string, cmd []string, in io.Reader, out, err io.WriteCloser,
|
||||||
log.Printf("receive ExecInContainer %q\n", container)
|
tty bool, resize <-chan remotecommand.TerminalSize, timeout time.Duration) error {
|
||||||
return nil
|
log.Printf("Received ExecInContainer request for %s.\n", container)
|
||||||
|
return errNotImplemented
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetPodStatus retrieves the status of a pod by name from the provider.
|
// GetPodStatus retrieves the status of a pod by name from the provider.
|
||||||
|
|||||||
Reference in New Issue
Block a user