Monitord Acces Change
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"errors"
|
||||
"io"
|
||||
|
||||
wfv1 "github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1"
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/apimachinery/pkg/watch"
|
||||
)
|
||||
@@ -11,7 +12,12 @@ import (
|
||||
type Tool interface {
|
||||
CreateArgoWorkflow(path string, ns string) (string, error)
|
||||
CreateAccessSecret(user string, password string, storageId string, namespace string) (string, error)
|
||||
// CreateSourceSecret creates an ephemeral K8s Secret holding a pre-signed URL
|
||||
// for a private source resource. The secret is labelled with the execution ID
|
||||
// so it can be bulk-cleaned up after workflow completion.
|
||||
CreateSourceSecret(secretName, presignedURL, executionID, namespace string) error
|
||||
GetArgoWatch(executionId string, wfName string) (watch.Interface, error)
|
||||
GetArgoWorkflow(ns string, wfName string) (*wfv1.Workflow, error)
|
||||
GetPodLogger(ns string, wfName string, podName string) (io.ReadCloser, error)
|
||||
GetS3Secret(storageId string, namespace string) *v1.Secret
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user