Fargate: Add stubs for new provider APIs

This commit is contained in:
Onur Filiz
2018-08-03 11:48:27 -07:00
committed by Onur Filiz
parent bcea8b955b
commit 4efc61d1ae
2 changed files with 7 additions and 6 deletions

View File

@@ -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

View File

@@ -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.