id int32 0 167k | repo stringlengths 5 54 | path stringlengths 4 155 | func_name stringlengths 1 118 | original_string stringlengths 52 85.5k | language stringclasses 1
value | code stringlengths 52 85.5k | code_tokens list | docstring stringlengths 6 2.61k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 85 252 |
|---|---|---|---|---|---|---|---|---|---|---|---|
134,700 | argoproj/argo | workflow/executor/common/common.go | CopyArchive | func CopyArchive(c KubernetesClientInterface, containerID, sourcePath, destPath string) error {
log.Infof("Archiving %s:%s to %s", containerID, sourcePath, destPath)
b, err := c.CreateArchive(containerID, sourcePath)
if err != nil {
return err
}
f, err := os.OpenFile(destPath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY,... | go | func CopyArchive(c KubernetesClientInterface, containerID, sourcePath, destPath string) error {
log.Infof("Archiving %s:%s to %s", containerID, sourcePath, destPath)
b, err := c.CreateArchive(containerID, sourcePath)
if err != nil {
return err
}
f, err := os.OpenFile(destPath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY,... | [
"func",
"CopyArchive",
"(",
"c",
"KubernetesClientInterface",
",",
"containerID",
",",
"sourcePath",
",",
"destPath",
"string",
")",
"error",
"{",
"log",
".",
"Infof",
"(",
"\"",
"\"",
",",
"containerID",
",",
"sourcePath",
",",
"destPath",
")",
"\n",
"b",
... | // CopyArchive downloads files and directories as a tarball and saves it to a specified path. | [
"CopyArchive",
"downloads",
"files",
"and",
"directories",
"as",
"a",
"tarball",
"and",
"saves",
"it",
"to",
"a",
"specified",
"path",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/common/common.go#L116-L140 |
134,701 | argoproj/argo | workflow/controller/workflowpod.go | substitutePodParams | func substitutePodParams(pod *apiv1.Pod, podParams map[string]string) (*apiv1.Pod, error) {
newPodParams := make(map[string]string)
for k, v := range podParams {
newPodParams[k] = v
}
newPodParams[common.LocalVarPodName] = pod.Name
podParams = newPodParams
specBytes, err := json.Marshal(pod)
if err != nil {
... | go | func substitutePodParams(pod *apiv1.Pod, podParams map[string]string) (*apiv1.Pod, error) {
newPodParams := make(map[string]string)
for k, v := range podParams {
newPodParams[k] = v
}
newPodParams[common.LocalVarPodName] = pod.Name
podParams = newPodParams
specBytes, err := json.Marshal(pod)
if err != nil {
... | [
"func",
"substitutePodParams",
"(",
"pod",
"*",
"apiv1",
".",
"Pod",
",",
"podParams",
"map",
"[",
"string",
"]",
"string",
")",
"(",
"*",
"apiv1",
".",
"Pod",
",",
"error",
")",
"{",
"newPodParams",
":=",
"make",
"(",
"map",
"[",
"string",
"]",
"str... | // substitutePodParams returns a pod spec with parameter references substituted as well as pod.name | [
"substitutePodParams",
"returns",
"a",
"pod",
"spec",
"with",
"parameter",
"references",
"substituted",
"as",
"well",
"as",
"pod",
".",
"name"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/workflowpod.go#L229-L251 |
134,702 | argoproj/argo | workflow/controller/workflowpod.go | hasPrivilegedContainers | func hasPrivilegedContainers(tmpl *wfv1.Template) bool {
if containerIsPrivileged(tmpl.Container) {
return true
}
for _, side := range tmpl.Sidecars {
if containerIsPrivileged(&side.Container) {
return true
}
}
return false
} | go | func hasPrivilegedContainers(tmpl *wfv1.Template) bool {
if containerIsPrivileged(tmpl.Container) {
return true
}
for _, side := range tmpl.Sidecars {
if containerIsPrivileged(&side.Container) {
return true
}
}
return false
} | [
"func",
"hasPrivilegedContainers",
"(",
"tmpl",
"*",
"wfv1",
".",
"Template",
")",
"bool",
"{",
"if",
"containerIsPrivileged",
"(",
"tmpl",
".",
"Container",
")",
"{",
"return",
"true",
"\n",
"}",
"\n",
"for",
"_",
",",
"side",
":=",
"range",
"tmpl",
"."... | // hasPrivilegedContainers tests if the main container or sidecars is privileged | [
"hasPrivilegedContainers",
"tests",
"if",
"the",
"main",
"container",
"or",
"sidecars",
"is",
"privileged"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/workflowpod.go#L284-L294 |
134,703 | argoproj/argo | workflow/controller/workflowpod.go | addMetadata | func (woc *wfOperationCtx) addMetadata(pod *apiv1.Pod, tmpl *wfv1.Template) {
for k, v := range tmpl.Metadata.Annotations {
pod.ObjectMeta.Annotations[k] = v
}
for k, v := range tmpl.Metadata.Labels {
pod.ObjectMeta.Labels[k] = v
}
if woc.workflowDeadline != nil {
execCtl := common.ExecutionControl{
Deadl... | go | func (woc *wfOperationCtx) addMetadata(pod *apiv1.Pod, tmpl *wfv1.Template) {
for k, v := range tmpl.Metadata.Annotations {
pod.ObjectMeta.Annotations[k] = v
}
for k, v := range tmpl.Metadata.Labels {
pod.ObjectMeta.Labels[k] = v
}
if woc.workflowDeadline != nil {
execCtl := common.ExecutionControl{
Deadl... | [
"func",
"(",
"woc",
"*",
"wfOperationCtx",
")",
"addMetadata",
"(",
"pod",
"*",
"apiv1",
".",
"Pod",
",",
"tmpl",
"*",
"wfv1",
".",
"Template",
")",
"{",
"for",
"k",
",",
"v",
":=",
"range",
"tmpl",
".",
"Metadata",
".",
"Annotations",
"{",
"pod",
... | // addMetadata applies metadata specified in the template | [
"addMetadata",
"applies",
"metadata",
"specified",
"in",
"the",
"template"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/workflowpod.go#L429-L446 |
134,704 | argoproj/argo | workflow/controller/workflowpod.go | addSchedulingConstraints | func addSchedulingConstraints(pod *apiv1.Pod, wfSpec *wfv1.WorkflowSpec, tmpl *wfv1.Template) {
// Set nodeSelector (if specified)
if len(tmpl.NodeSelector) > 0 {
pod.Spec.NodeSelector = tmpl.NodeSelector
} else if len(wfSpec.NodeSelector) > 0 {
pod.Spec.NodeSelector = wfSpec.NodeSelector
}
// Set affinity (if... | go | func addSchedulingConstraints(pod *apiv1.Pod, wfSpec *wfv1.WorkflowSpec, tmpl *wfv1.Template) {
// Set nodeSelector (if specified)
if len(tmpl.NodeSelector) > 0 {
pod.Spec.NodeSelector = tmpl.NodeSelector
} else if len(wfSpec.NodeSelector) > 0 {
pod.Spec.NodeSelector = wfSpec.NodeSelector
}
// Set affinity (if... | [
"func",
"addSchedulingConstraints",
"(",
"pod",
"*",
"apiv1",
".",
"Pod",
",",
"wfSpec",
"*",
"wfv1",
".",
"WorkflowSpec",
",",
"tmpl",
"*",
"wfv1",
".",
"Template",
")",
"{",
"// Set nodeSelector (if specified)",
"if",
"len",
"(",
"tmpl",
".",
"NodeSelector",... | // addSchedulingConstraints applies any node selectors or affinity rules to the pod, either set in the workflow or the template | [
"addSchedulingConstraints",
"applies",
"any",
"node",
"selectors",
"or",
"affinity",
"rules",
"to",
"the",
"pod",
"either",
"set",
"in",
"the",
"workflow",
"or",
"the",
"template"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/workflowpod.go#L449-L493 |
134,705 | argoproj/argo | workflow/controller/workflowpod.go | addArchiveLocation | func (woc *wfOperationCtx) addArchiveLocation(pod *apiv1.Pod, tmpl *wfv1.Template) error {
// needLocation keeps track if the workflow needs to have an archive location set.
// If so, and one was not supplied (or defaulted), we will return error
var needLocation bool
if tmpl.ArchiveLocation != nil {
if tmpl.Arch... | go | func (woc *wfOperationCtx) addArchiveLocation(pod *apiv1.Pod, tmpl *wfv1.Template) error {
// needLocation keeps track if the workflow needs to have an archive location set.
// If so, and one was not supplied (or defaulted), we will return error
var needLocation bool
if tmpl.ArchiveLocation != nil {
if tmpl.Arch... | [
"func",
"(",
"woc",
"*",
"wfOperationCtx",
")",
"addArchiveLocation",
"(",
"pod",
"*",
"apiv1",
".",
"Pod",
",",
"tmpl",
"*",
"wfv1",
".",
"Template",
")",
"error",
"{",
"// needLocation keeps track if the workflow needs to have an archive location set.",
"// If so, and... | // addArchiveLocation conditionally updates the template with the default artifact repository
// information configured in the controller, for the purposes of archiving outputs. This is skipped
// for templates which do not need to archive anything, or have explicitly set an archive location
// in the template. | [
"addArchiveLocation",
"conditionally",
"updates",
"the",
"template",
"with",
"the",
"default",
"artifact",
"repository",
"information",
"configured",
"in",
"the",
"controller",
"for",
"the",
"purposes",
"of",
"archiving",
"outputs",
".",
"This",
"is",
"skipped",
"fo... | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/workflowpod.go#L709-L772 |
134,706 | argoproj/argo | workflow/controller/workflowpod.go | addScriptStagingVolume | func addScriptStagingVolume(pod *apiv1.Pod) {
volName := "argo-staging"
stagingVol := apiv1.Volume{
Name: volName,
VolumeSource: apiv1.VolumeSource{
EmptyDir: &apiv1.EmptyDirVolumeSource{},
},
}
pod.Spec.Volumes = append(pod.Spec.Volumes, stagingVol)
for i, initCtr := range pod.Spec.InitContainers {
if... | go | func addScriptStagingVolume(pod *apiv1.Pod) {
volName := "argo-staging"
stagingVol := apiv1.Volume{
Name: volName,
VolumeSource: apiv1.VolumeSource{
EmptyDir: &apiv1.EmptyDirVolumeSource{},
},
}
pod.Spec.Volumes = append(pod.Spec.Volumes, stagingVol)
for i, initCtr := range pod.Spec.InitContainers {
if... | [
"func",
"addScriptStagingVolume",
"(",
"pod",
"*",
"apiv1",
".",
"Pod",
")",
"{",
"volName",
":=",
"\"",
"\"",
"\n",
"stagingVol",
":=",
"apiv1",
".",
"Volume",
"{",
"Name",
":",
"volName",
",",
"VolumeSource",
":",
"apiv1",
".",
"VolumeSource",
"{",
"Em... | // addScriptStagingVolume sets up a shared staging volume between the init container
// and main container for the purpose of holding the script source code for script templates | [
"addScriptStagingVolume",
"sets",
"up",
"a",
"shared",
"staging",
"volume",
"between",
"the",
"init",
"container",
"and",
"main",
"container",
"for",
"the",
"purpose",
"of",
"holding",
"the",
"script",
"source",
"code",
"for",
"script",
"templates"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/workflowpod.go#L776-L813 |
134,707 | argoproj/argo | workflow/controller/workflowpod.go | addInitContainers | func addInitContainers(pod *apiv1.Pod, tmpl *wfv1.Template) error {
if len(tmpl.InitContainers) == 0 {
return nil
}
mainCtr := findMainContainer(pod)
if mainCtr == nil {
panic("Unable to locate main container")
}
for _, ctr := range tmpl.InitContainers {
log.Debugf("Adding init container %s", ctr.Name)
if... | go | func addInitContainers(pod *apiv1.Pod, tmpl *wfv1.Template) error {
if len(tmpl.InitContainers) == 0 {
return nil
}
mainCtr := findMainContainer(pod)
if mainCtr == nil {
panic("Unable to locate main container")
}
for _, ctr := range tmpl.InitContainers {
log.Debugf("Adding init container %s", ctr.Name)
if... | [
"func",
"addInitContainers",
"(",
"pod",
"*",
"apiv1",
".",
"Pod",
",",
"tmpl",
"*",
"wfv1",
".",
"Template",
")",
"error",
"{",
"if",
"len",
"(",
"tmpl",
".",
"InitContainers",
")",
"==",
"0",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"mainCtr",
":=",
... | // addInitContainers adds all init containers to the pod spec of the step
// Optionally volume mounts from the main container to the init containers | [
"addInitContainers",
"adds",
"all",
"init",
"containers",
"to",
"the",
"pod",
"spec",
"of",
"the",
"step",
"Optionally",
"volume",
"mounts",
"from",
"the",
"main",
"container",
"to",
"the",
"init",
"containers"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/workflowpod.go#L817-L833 |
134,708 | argoproj/argo | workflow/controller/workflowpod.go | addSidecars | func addSidecars(pod *apiv1.Pod, tmpl *wfv1.Template) error {
if len(tmpl.Sidecars) == 0 {
return nil
}
mainCtr := findMainContainer(pod)
if mainCtr == nil {
panic("Unable to locate main container")
}
for _, sidecar := range tmpl.Sidecars {
log.Debugf("Adding sidecar container %s", sidecar.Name)
if sideca... | go | func addSidecars(pod *apiv1.Pod, tmpl *wfv1.Template) error {
if len(tmpl.Sidecars) == 0 {
return nil
}
mainCtr := findMainContainer(pod)
if mainCtr == nil {
panic("Unable to locate main container")
}
for _, sidecar := range tmpl.Sidecars {
log.Debugf("Adding sidecar container %s", sidecar.Name)
if sideca... | [
"func",
"addSidecars",
"(",
"pod",
"*",
"apiv1",
".",
"Pod",
",",
"tmpl",
"*",
"wfv1",
".",
"Template",
")",
"error",
"{",
"if",
"len",
"(",
"tmpl",
".",
"Sidecars",
")",
"==",
"0",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"mainCtr",
":=",
"findMainC... | // addSidecars adds all sidecars to the pod spec of the step.
// Optionally volume mounts from the main container to the sidecar | [
"addSidecars",
"adds",
"all",
"sidecars",
"to",
"the",
"pod",
"spec",
"of",
"the",
"step",
".",
"Optionally",
"volume",
"mounts",
"from",
"the",
"main",
"container",
"to",
"the",
"sidecar"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/workflowpod.go#L837-L853 |
134,709 | argoproj/argo | workflow/controller/workflowpod.go | createSecretVolumes | func createSecretVolumes(tmpl *wfv1.Template) ([]apiv1.Volume, []apiv1.VolumeMount) {
var allVolumesMap = make(map[string]apiv1.Volume)
var uniqueKeyMap = make(map[string]bool)
var secretVolumes []apiv1.Volume
var secretVolMounts []apiv1.VolumeMount
createArchiveLocationSecret(tmpl, allVolumesMap, uniqueKeyMap)
... | go | func createSecretVolumes(tmpl *wfv1.Template) ([]apiv1.Volume, []apiv1.VolumeMount) {
var allVolumesMap = make(map[string]apiv1.Volume)
var uniqueKeyMap = make(map[string]bool)
var secretVolumes []apiv1.Volume
var secretVolMounts []apiv1.VolumeMount
createArchiveLocationSecret(tmpl, allVolumesMap, uniqueKeyMap)
... | [
"func",
"createSecretVolumes",
"(",
"tmpl",
"*",
"wfv1",
".",
"Template",
")",
"(",
"[",
"]",
"apiv1",
".",
"Volume",
",",
"[",
"]",
"apiv1",
".",
"VolumeMount",
")",
"{",
"var",
"allVolumesMap",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"apiv1",
... | // createSecretVolumes will retrieve and create Volumes and Volumemount object for Pod | [
"createSecretVolumes",
"will",
"retrieve",
"and",
"create",
"Volumes",
"and",
"Volumemount",
"object",
"for",
"Pod"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/workflowpod.go#L871-L896 |
134,710 | argoproj/argo | workflow/controller/workflowpod.go | findMainContainer | func findMainContainer(pod *apiv1.Pod) *apiv1.Container {
var mainCtr *apiv1.Container
for _, ctr := range pod.Spec.Containers {
if ctr.Name != common.MainContainerName {
continue
}
mainCtr = &ctr
break
}
return mainCtr
} | go | func findMainContainer(pod *apiv1.Pod) *apiv1.Container {
var mainCtr *apiv1.Container
for _, ctr := range pod.Spec.Containers {
if ctr.Name != common.MainContainerName {
continue
}
mainCtr = &ctr
break
}
return mainCtr
} | [
"func",
"findMainContainer",
"(",
"pod",
"*",
"apiv1",
".",
"Pod",
")",
"*",
"apiv1",
".",
"Container",
"{",
"var",
"mainCtr",
"*",
"apiv1",
".",
"Container",
"\n",
"for",
"_",
",",
"ctr",
":=",
"range",
"pod",
".",
"Spec",
".",
"Containers",
"{",
"i... | // findMainContainer finds main container | [
"findMainContainer",
"finds",
"main",
"container"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/workflowpod.go#L969-L979 |
134,711 | argoproj/argo | workflow/controller/workflowpod.go | mirrorVolumeMounts | func mirrorVolumeMounts(sourceContainer, targetContainer *apiv1.Container) {
for _, volMnt := range sourceContainer.VolumeMounts {
if targetContainer.VolumeMounts == nil {
targetContainer.VolumeMounts = make([]apiv1.VolumeMount, 0)
}
log.Debugf("Adding volume mount %v to container %v", volMnt.Name, targetCont... | go | func mirrorVolumeMounts(sourceContainer, targetContainer *apiv1.Container) {
for _, volMnt := range sourceContainer.VolumeMounts {
if targetContainer.VolumeMounts == nil {
targetContainer.VolumeMounts = make([]apiv1.VolumeMount, 0)
}
log.Debugf("Adding volume mount %v to container %v", volMnt.Name, targetCont... | [
"func",
"mirrorVolumeMounts",
"(",
"sourceContainer",
",",
"targetContainer",
"*",
"apiv1",
".",
"Container",
")",
"{",
"for",
"_",
",",
"volMnt",
":=",
"range",
"sourceContainer",
".",
"VolumeMounts",
"{",
"if",
"targetContainer",
".",
"VolumeMounts",
"==",
"ni... | // mirrorVolumeMounts mirrors volumeMounts of source container to target container | [
"mirrorVolumeMounts",
"mirrors",
"volumeMounts",
"of",
"source",
"container",
"to",
"target",
"container"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/workflowpod.go#L982-L991 |
134,712 | argoproj/argo | pkg/client/clientset/versioned/typed/workflow/v1alpha1/workflow.go | newWorkflows | func newWorkflows(c *ArgoprojV1alpha1Client, namespace string) *workflows {
return &workflows{
client: c.RESTClient(),
ns: namespace,
}
} | go | func newWorkflows(c *ArgoprojV1alpha1Client, namespace string) *workflows {
return &workflows{
client: c.RESTClient(),
ns: namespace,
}
} | [
"func",
"newWorkflows",
"(",
"c",
"*",
"ArgoprojV1alpha1Client",
",",
"namespace",
"string",
")",
"*",
"workflows",
"{",
"return",
"&",
"workflows",
"{",
"client",
":",
"c",
".",
"RESTClient",
"(",
")",
",",
"ns",
":",
"namespace",
",",
"}",
"\n",
"}"
] | // newWorkflows returns a Workflows | [
"newWorkflows",
"returns",
"a",
"Workflows"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/client/clientset/versioned/typed/workflow/v1alpha1/workflow.go#L40-L45 |
134,713 | argoproj/argo | cmd/argo/commands/wait.go | WaitWorkflows | func WaitWorkflows(workflowNames []string, ignoreNotFound, quiet bool) {
var wg sync.WaitGroup
for _, workflowName := range workflowNames {
wg.Add(1)
go func(name string) {
waitOnOne(name, ignoreNotFound, quiet)
wg.Done()
}(workflowName)
}
wg.Wait()
} | go | func WaitWorkflows(workflowNames []string, ignoreNotFound, quiet bool) {
var wg sync.WaitGroup
for _, workflowName := range workflowNames {
wg.Add(1)
go func(name string) {
waitOnOne(name, ignoreNotFound, quiet)
wg.Done()
}(workflowName)
}
wg.Wait()
} | [
"func",
"WaitWorkflows",
"(",
"workflowNames",
"[",
"]",
"string",
",",
"ignoreNotFound",
",",
"quiet",
"bool",
")",
"{",
"var",
"wg",
"sync",
".",
"WaitGroup",
"\n",
"for",
"_",
",",
"workflowName",
":=",
"range",
"workflowNames",
"{",
"wg",
".",
"Add",
... | // WaitWorkflows waits for the given workflowNames. | [
"WaitWorkflows",
"waits",
"for",
"the",
"given",
"workflowNames",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/cmd/argo/commands/wait.go#L37-L47 |
134,714 | argoproj/argo | cmd/argo/commands/submit.go | unmarshalWorkflows | func unmarshalWorkflows(wfBytes []byte, strict bool) []wfv1.Workflow {
var wf wfv1.Workflow
var jsonOpts []json.JSONOpt
if strict {
jsonOpts = append(jsonOpts, json.DisallowUnknownFields)
}
err := json.Unmarshal(wfBytes, &wf, jsonOpts...)
if err == nil {
return []wfv1.Workflow{wf}
}
yamlWfs, err := common.S... | go | func unmarshalWorkflows(wfBytes []byte, strict bool) []wfv1.Workflow {
var wf wfv1.Workflow
var jsonOpts []json.JSONOpt
if strict {
jsonOpts = append(jsonOpts, json.DisallowUnknownFields)
}
err := json.Unmarshal(wfBytes, &wf, jsonOpts...)
if err == nil {
return []wfv1.Workflow{wf}
}
yamlWfs, err := common.S... | [
"func",
"unmarshalWorkflows",
"(",
"wfBytes",
"[",
"]",
"byte",
",",
"strict",
"bool",
")",
"[",
"]",
"wfv1",
".",
"Workflow",
"{",
"var",
"wf",
"wfv1",
".",
"Workflow",
"\n",
"var",
"jsonOpts",
"[",
"]",
"json",
".",
"JSONOpt",
"\n",
"if",
"strict",
... | // unmarshalWorkflows unmarshals the input bytes as either json or yaml | [
"unmarshalWorkflows",
"unmarshals",
"the",
"input",
"bytes",
"as",
"either",
"json",
"or",
"yaml"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/cmd/argo/commands/submit.go#L128-L144 |
134,715 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ArchiveStrategy) DeepCopy() *ArchiveStrategy {
if in == nil {
return nil
}
out := new(ArchiveStrategy)
in.DeepCopyInto(out)
return out
} | go | func (in *ArchiveStrategy) DeepCopy() *ArchiveStrategy {
if in == nil {
return nil
}
out := new(ArchiveStrategy)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ArchiveStrategy",
")",
"DeepCopy",
"(",
")",
"*",
"ArchiveStrategy",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ArchiveStrategy",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArchiveStrategy. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ArchiveStrategy",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L29-L36 |
134,716 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *Arguments) DeepCopy() *Arguments {
if in == nil {
return nil
}
out := new(Arguments)
in.DeepCopyInto(out)
return out
} | go | func (in *Arguments) DeepCopy() *Arguments {
if in == nil {
return nil
}
out := new(Arguments)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"Arguments",
")",
"DeepCopy",
"(",
")",
"*",
"Arguments",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"Arguments",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Arguments. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"Arguments",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L59-L66 |
134,717 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *Artifact) DeepCopy() *Artifact {
if in == nil {
return nil
}
out := new(Artifact)
in.DeepCopyInto(out)
return out
} | go | func (in *Artifact) DeepCopy() *Artifact {
if in == nil {
return nil
}
out := new(Artifact)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"Artifact",
")",
"DeepCopy",
"(",
")",
"*",
"Artifact",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"Artifact",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\n",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Artifact. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"Artifact",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L86-L93 |
134,718 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ArtifactLocation) DeepCopy() *ArtifactLocation {
if in == nil {
return nil
}
out := new(ArtifactLocation)
in.DeepCopyInto(out)
return out
} | go | func (in *ArtifactLocation) DeepCopy() *ArtifactLocation {
if in == nil {
return nil
}
out := new(ArtifactLocation)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ArtifactLocation",
")",
"DeepCopy",
"(",
")",
"*",
"ArtifactLocation",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ArtifactLocation",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactLocation. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ArtifactLocation",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L137-L144 |
134,719 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ArtifactoryArtifact) DeepCopy() *ArtifactoryArtifact {
if in == nil {
return nil
}
out := new(ArtifactoryArtifact)
in.DeepCopyInto(out)
return out
} | go | func (in *ArtifactoryArtifact) DeepCopy() *ArtifactoryArtifact {
if in == nil {
return nil
}
out := new(ArtifactoryArtifact)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ArtifactoryArtifact",
")",
"DeepCopy",
"(",
")",
"*",
"ArtifactoryArtifact",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ArtifactoryArtifact",
")",
"\n",
"in",
".",
"DeepCopyInto... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactoryArtifact. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ArtifactoryArtifact",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L154-L161 |
134,720 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ArtifactoryAuth) DeepCopy() *ArtifactoryAuth {
if in == nil {
return nil
}
out := new(ArtifactoryAuth)
in.DeepCopyInto(out)
return out
} | go | func (in *ArtifactoryAuth) DeepCopy() *ArtifactoryAuth {
if in == nil {
return nil
}
out := new(ArtifactoryAuth)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ArtifactoryAuth",
")",
"DeepCopy",
"(",
")",
"*",
"ArtifactoryAuth",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ArtifactoryAuth",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactoryAuth. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ArtifactoryAuth",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L180-L187 |
134,721 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ContinueOn) DeepCopy() *ContinueOn {
if in == nil {
return nil
}
out := new(ContinueOn)
in.DeepCopyInto(out)
return out
} | go | func (in *ContinueOn) DeepCopy() *ContinueOn {
if in == nil {
return nil
}
out := new(ContinueOn)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ContinueOn",
")",
"DeepCopy",
"(",
")",
"*",
"ContinueOn",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ContinueOn",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContinueOn. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ContinueOn",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L196-L203 |
134,722 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *DAGTask) DeepCopy() *DAGTask {
if in == nil {
return nil
}
out := new(DAGTask)
in.DeepCopyInto(out)
return out
} | go | func (in *DAGTask) DeepCopy() *DAGTask {
if in == nil {
return nil
}
out := new(DAGTask)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"DAGTask",
")",
"DeepCopy",
"(",
")",
"*",
"DAGTask",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"DAGTask",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\n",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DAGTask. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"DAGTask",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L235-L242 |
134,723 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *DAGTemplate) DeepCopy() *DAGTemplate {
if in == nil {
return nil
}
out := new(DAGTemplate)
in.DeepCopyInto(out)
return out
} | go | func (in *DAGTemplate) DeepCopy() *DAGTemplate {
if in == nil {
return nil
}
out := new(DAGTemplate)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"DAGTemplate",
")",
"DeepCopy",
"(",
")",
"*",
"DAGTemplate",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"DAGTemplate",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")"... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DAGTemplate. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"DAGTemplate",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L258-L265 |
134,724 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *GitArtifact) DeepCopy() *GitArtifact {
if in == nil {
return nil
}
out := new(GitArtifact)
in.DeepCopyInto(out)
return out
} | go | func (in *GitArtifact) DeepCopy() *GitArtifact {
if in == nil {
return nil
}
out := new(GitArtifact)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"GitArtifact",
")",
"DeepCopy",
"(",
")",
"*",
"GitArtifact",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"GitArtifact",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")"... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitArtifact. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"GitArtifact",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L289-L296 |
134,725 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *HDFSArtifact) DeepCopy() *HDFSArtifact {
if in == nil {
return nil
}
out := new(HDFSArtifact)
in.DeepCopyInto(out)
return out
} | go | func (in *HDFSArtifact) DeepCopy() *HDFSArtifact {
if in == nil {
return nil
}
out := new(HDFSArtifact)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"HDFSArtifact",
")",
"DeepCopy",
"(",
")",
"*",
"HDFSArtifact",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"HDFSArtifact",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HDFSArtifact. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"HDFSArtifact",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L306-L313 |
134,726 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *HDFSConfig) DeepCopy() *HDFSConfig {
if in == nil {
return nil
}
out := new(HDFSConfig)
in.DeepCopyInto(out)
return out
} | go | func (in *HDFSConfig) DeepCopy() *HDFSConfig {
if in == nil {
return nil
}
out := new(HDFSConfig)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"HDFSConfig",
")",
"DeepCopy",
"(",
")",
"*",
"HDFSConfig",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"HDFSConfig",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HDFSConfig. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"HDFSConfig",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L328-L335 |
134,727 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *HDFSKrbConfig) DeepCopy() *HDFSKrbConfig {
if in == nil {
return nil
}
out := new(HDFSKrbConfig)
in.DeepCopyInto(out)
return out
} | go | func (in *HDFSKrbConfig) DeepCopy() *HDFSKrbConfig {
if in == nil {
return nil
}
out := new(HDFSKrbConfig)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"HDFSKrbConfig",
")",
"DeepCopy",
"(",
")",
"*",
"HDFSKrbConfig",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"HDFSKrbConfig",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HDFSKrbConfig. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"HDFSKrbConfig",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L359-L366 |
134,728 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *HTTPArtifact) DeepCopy() *HTTPArtifact {
if in == nil {
return nil
}
out := new(HTTPArtifact)
in.DeepCopyInto(out)
return out
} | go | func (in *HTTPArtifact) DeepCopy() *HTTPArtifact {
if in == nil {
return nil
}
out := new(HTTPArtifact)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"HTTPArtifact",
")",
"DeepCopy",
"(",
")",
"*",
"HTTPArtifact",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"HTTPArtifact",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPArtifact. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"HTTPArtifact",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L375-L382 |
134,729 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *Inputs) DeepCopy() *Inputs {
if in == nil {
return nil
}
out := new(Inputs)
in.DeepCopyInto(out)
return out
} | go | func (in *Inputs) DeepCopy() *Inputs {
if in == nil {
return nil
}
out := new(Inputs)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"Inputs",
")",
"DeepCopy",
"(",
")",
"*",
"Inputs",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"Inputs",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\n",
"re... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Inputs. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"Inputs",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L405-L412 |
134,730 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *Item) DeepCopy() *Item {
if in == nil {
return nil
}
out := new(Item)
in.DeepCopyInto(out)
return out
} | go | func (in *Item) DeepCopy() *Item {
if in == nil {
return nil
}
out := new(Item)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"Item",
")",
"DeepCopy",
"(",
")",
"*",
"Item",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"Item",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\n",
"return",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Item. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"Item",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L415-L422 |
134,731 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *Metadata) DeepCopy() *Metadata {
if in == nil {
return nil
}
out := new(Metadata)
in.DeepCopyInto(out)
return out
} | go | func (in *Metadata) DeepCopy() *Metadata {
if in == nil {
return nil
}
out := new(Metadata)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"Metadata",
")",
"DeepCopy",
"(",
")",
"*",
"Metadata",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"Metadata",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\n",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"Metadata",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L445-L452 |
134,732 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *NoneStrategy) DeepCopy() *NoneStrategy {
if in == nil {
return nil
}
out := new(NoneStrategy)
in.DeepCopyInto(out)
return out
} | go | func (in *NoneStrategy) DeepCopy() *NoneStrategy {
if in == nil {
return nil
}
out := new(NoneStrategy)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"NoneStrategy",
")",
"DeepCopy",
"(",
")",
"*",
"NoneStrategy",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"NoneStrategy",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NoneStrategy. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"NoneStrategy",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L504-L511 |
134,733 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *Outputs) DeepCopy() *Outputs {
if in == nil {
return nil
}
out := new(Outputs)
in.DeepCopyInto(out)
return out
} | go | func (in *Outputs) DeepCopy() *Outputs {
if in == nil {
return nil
}
out := new(Outputs)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"Outputs",
")",
"DeepCopy",
"(",
")",
"*",
"Outputs",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"Outputs",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\n",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Outputs. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"Outputs",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L539-L546 |
134,734 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *RawArtifact) DeepCopy() *RawArtifact {
if in == nil {
return nil
}
out := new(RawArtifact)
in.DeepCopyInto(out)
return out
} | go | func (in *RawArtifact) DeepCopy() *RawArtifact {
if in == nil {
return nil
}
out := new(RawArtifact)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"RawArtifact",
")",
"DeepCopy",
"(",
")",
"*",
"RawArtifact",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"RawArtifact",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")"... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RawArtifact. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"RawArtifact",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L586-L593 |
134,735 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceTemplate) DeepCopy() *ResourceTemplate {
if in == nil {
return nil
}
out := new(ResourceTemplate)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceTemplate) DeepCopy() *ResourceTemplate {
if in == nil {
return nil
}
out := new(ResourceTemplate)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceTemplate",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceTemplate",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceTemplate",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceTemplate. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceTemplate",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L602-L609 |
134,736 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *RetryStrategy) DeepCopy() *RetryStrategy {
if in == nil {
return nil
}
out := new(RetryStrategy)
in.DeepCopyInto(out)
return out
} | go | func (in *RetryStrategy) DeepCopy() *RetryStrategy {
if in == nil {
return nil
}
out := new(RetryStrategy)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"RetryStrategy",
")",
"DeepCopy",
"(",
")",
"*",
"RetryStrategy",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"RetryStrategy",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RetryStrategy. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"RetryStrategy",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L623-L630 |
134,737 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *S3Artifact) DeepCopy() *S3Artifact {
if in == nil {
return nil
}
out := new(S3Artifact)
in.DeepCopyInto(out)
return out
} | go | func (in *S3Artifact) DeepCopy() *S3Artifact {
if in == nil {
return nil
}
out := new(S3Artifact)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"S3Artifact",
")",
"DeepCopy",
"(",
")",
"*",
"S3Artifact",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"S3Artifact",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Artifact. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"S3Artifact",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L640-L647 |
134,738 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *S3Bucket) DeepCopy() *S3Bucket {
if in == nil {
return nil
}
out := new(S3Bucket)
in.DeepCopyInto(out)
return out
} | go | func (in *S3Bucket) DeepCopy() *S3Bucket {
if in == nil {
return nil
}
out := new(S3Bucket)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"S3Bucket",
")",
"DeepCopy",
"(",
")",
"*",
"S3Bucket",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"S3Bucket",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\n",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Bucket. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"S3Bucket",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L663-L670 |
134,739 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ScriptTemplate) DeepCopy() *ScriptTemplate {
if in == nil {
return nil
}
out := new(ScriptTemplate)
in.DeepCopyInto(out)
return out
} | go | func (in *ScriptTemplate) DeepCopy() *ScriptTemplate {
if in == nil {
return nil
}
out := new(ScriptTemplate)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ScriptTemplate",
")",
"DeepCopy",
"(",
")",
"*",
"ScriptTemplate",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ScriptTemplate",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"ou... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScriptTemplate. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ScriptTemplate",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L680-L687 |
134,740 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *Sequence) DeepCopy() *Sequence {
if in == nil {
return nil
}
out := new(Sequence)
in.DeepCopyInto(out)
return out
} | go | func (in *Sequence) DeepCopy() *Sequence {
if in == nil {
return nil
}
out := new(Sequence)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"Sequence",
")",
"DeepCopy",
"(",
")",
"*",
"Sequence",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"Sequence",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\n",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sequence. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"Sequence",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L696-L703 |
134,741 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *SuspendTemplate) DeepCopy() *SuspendTemplate {
if in == nil {
return nil
}
out := new(SuspendTemplate)
in.DeepCopyInto(out)
return out
} | go | func (in *SuspendTemplate) DeepCopy() *SuspendTemplate {
if in == nil {
return nil
}
out := new(SuspendTemplate)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"SuspendTemplate",
")",
"DeepCopy",
"(",
")",
"*",
"SuspendTemplate",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"SuspendTemplate",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SuspendTemplate. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"SuspendTemplate",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L712-L719 |
134,742 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *TarStrategy) DeepCopy() *TarStrategy {
if in == nil {
return nil
}
out := new(TarStrategy)
in.DeepCopyInto(out)
return out
} | go | func (in *TarStrategy) DeepCopy() *TarStrategy {
if in == nil {
return nil
}
out := new(TarStrategy)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"TarStrategy",
")",
"DeepCopy",
"(",
")",
"*",
"TarStrategy",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"TarStrategy",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")"... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TarStrategy. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"TarStrategy",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L728-L735 |
134,743 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *UserContainer) DeepCopy() *UserContainer {
if in == nil {
return nil
}
out := new(UserContainer)
in.DeepCopyInto(out)
return out
} | go | func (in *UserContainer) DeepCopy() *UserContainer {
if in == nil {
return nil
}
out := new(UserContainer)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"UserContainer",
")",
"DeepCopy",
"(",
")",
"*",
"UserContainer",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"UserContainer",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserContainer. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"UserContainer",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L877-L884 |
134,744 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ValueFrom) DeepCopy() *ValueFrom {
if in == nil {
return nil
}
out := new(ValueFrom)
in.DeepCopyInto(out)
return out
} | go | func (in *ValueFrom) DeepCopy() *ValueFrom {
if in == nil {
return nil
}
out := new(ValueFrom)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ValueFrom",
")",
"DeepCopy",
"(",
")",
"*",
"ValueFrom",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ValueFrom",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueFrom. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ValueFrom",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L893-L900 |
134,745 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *Workflow) DeepCopy() *Workflow {
if in == nil {
return nil
}
out := new(Workflow)
in.DeepCopyInto(out)
return out
} | go | func (in *Workflow) DeepCopy() *Workflow {
if in == nil {
return nil
}
out := new(Workflow)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"Workflow",
")",
"DeepCopy",
"(",
")",
"*",
"Workflow",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"Workflow",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\n",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workflow. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"Workflow",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L913-L920 |
134,746 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *WorkflowList) DeepCopy() *WorkflowList {
if in == nil {
return nil
}
out := new(WorkflowList)
in.DeepCopyInto(out)
return out
} | go | func (in *WorkflowList) DeepCopy() *WorkflowList {
if in == nil {
return nil
}
out := new(WorkflowList)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"WorkflowList",
")",
"DeepCopy",
"(",
")",
"*",
"WorkflowList",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"WorkflowList",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowList. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"WorkflowList",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L946-L953 |
134,747 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *WorkflowSpec) DeepCopy() *WorkflowSpec {
if in == nil {
return nil
}
out := new(WorkflowSpec)
in.DeepCopyInto(out)
return out
} | go | func (in *WorkflowSpec) DeepCopy() *WorkflowSpec {
if in == nil {
return nil
}
out := new(WorkflowSpec)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"WorkflowSpec",
")",
"DeepCopy",
"(",
")",
"*",
"WorkflowSpec",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"WorkflowSpec",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowSpec. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"WorkflowSpec",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L1061-L1068 |
134,748 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *WorkflowStatus) DeepCopy() *WorkflowStatus {
if in == nil {
return nil
}
out := new(WorkflowStatus)
in.DeepCopyInto(out)
return out
} | go | func (in *WorkflowStatus) DeepCopy() *WorkflowStatus {
if in == nil {
return nil
}
out := new(WorkflowStatus)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"WorkflowStatus",
")",
"DeepCopy",
"(",
")",
"*",
"WorkflowStatus",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"WorkflowStatus",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"ou... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowStatus. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"WorkflowStatus",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L1098-L1105 |
134,749 | argoproj/argo | pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *WorkflowStep) DeepCopy() *WorkflowStep {
if in == nil {
return nil
}
out := new(WorkflowStep)
in.DeepCopyInto(out)
return out
} | go | func (in *WorkflowStep) DeepCopy() *WorkflowStep {
if in == nil {
return nil
}
out := new(WorkflowStep)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"WorkflowStep",
")",
"DeepCopy",
"(",
")",
"*",
"WorkflowStep",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"WorkflowStep",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowStep. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"WorkflowStep",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go#L1132-L1139 |
134,750 | argoproj/argo | workflow/executor/resource.go | ExecResource | func (we *WorkflowExecutor) ExecResource(action string, manifestPath string, isDelete bool) (string, string, error) {
args := []string{
action,
}
output := "json"
if isDelete {
args = append(args, "--ignore-not-found")
output = "name"
}
if action == "patch" {
mergeStrategy := "strategic"
if we.Template... | go | func (we *WorkflowExecutor) ExecResource(action string, manifestPath string, isDelete bool) (string, string, error) {
args := []string{
action,
}
output := "json"
if isDelete {
args = append(args, "--ignore-not-found")
output = "name"
}
if action == "patch" {
mergeStrategy := "strategic"
if we.Template... | [
"func",
"(",
"we",
"*",
"WorkflowExecutor",
")",
"ExecResource",
"(",
"action",
"string",
",",
"manifestPath",
"string",
",",
"isDelete",
"bool",
")",
"(",
"string",
",",
"string",
",",
"error",
")",
"{",
"args",
":=",
"[",
"]",
"string",
"{",
"action",
... | // ExecResource will run kubectl action against a manifest | [
"ExecResource",
"will",
"run",
"kubectl",
"action",
"against",
"a",
"manifest"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/resource.go#L23-L75 |
134,751 | argoproj/argo | workflow/executor/resource.go | Has | func (g gjsonLabels) Has(label string) bool {
return gjson.GetBytes(g.json, label).Exists()
} | go | func (g gjsonLabels) Has(label string) bool {
return gjson.GetBytes(g.json, label).Exists()
} | [
"func",
"(",
"g",
"gjsonLabels",
")",
"Has",
"(",
"label",
"string",
")",
"bool",
"{",
"return",
"gjson",
".",
"GetBytes",
"(",
"g",
".",
"json",
",",
"label",
")",
".",
"Exists",
"(",
")",
"\n",
"}"
] | // Has returns whether the provided label exists. | [
"Has",
"returns",
"whether",
"the",
"provided",
"label",
"exists",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/resource.go#L85-L87 |
134,752 | argoproj/argo | workflow/executor/resource.go | Get | func (g gjsonLabels) Get(label string) string {
return gjson.GetBytes(g.json, label).String()
} | go | func (g gjsonLabels) Get(label string) string {
return gjson.GetBytes(g.json, label).String()
} | [
"func",
"(",
"g",
"gjsonLabels",
")",
"Get",
"(",
"label",
"string",
")",
"string",
"{",
"return",
"gjson",
".",
"GetBytes",
"(",
"g",
".",
"json",
",",
"label",
")",
".",
"String",
"(",
")",
"\n",
"}"
] | // Get returns the value for the provided label. | [
"Get",
"returns",
"the",
"value",
"for",
"the",
"provided",
"label",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/resource.go#L90-L92 |
134,753 | argoproj/argo | workflow/executor/resource.go | WaitResource | func (we *WorkflowExecutor) WaitResource(resourceNamespace string, resourceName string) error {
if we.Template.Resource.SuccessCondition == "" && we.Template.Resource.FailureCondition == "" {
return nil
}
var successReqs labels.Requirements
if we.Template.Resource.SuccessCondition != "" {
successSelector, err :... | go | func (we *WorkflowExecutor) WaitResource(resourceNamespace string, resourceName string) error {
if we.Template.Resource.SuccessCondition == "" && we.Template.Resource.FailureCondition == "" {
return nil
}
var successReqs labels.Requirements
if we.Template.Resource.SuccessCondition != "" {
successSelector, err :... | [
"func",
"(",
"we",
"*",
"WorkflowExecutor",
")",
"WaitResource",
"(",
"resourceNamespace",
"string",
",",
"resourceName",
"string",
")",
"error",
"{",
"if",
"we",
".",
"Template",
".",
"Resource",
".",
"SuccessCondition",
"==",
"\"",
"\"",
"&&",
"we",
".",
... | // WaitResource waits for a specific resource to satisfy either the success or failure condition | [
"WaitResource",
"waits",
"for",
"a",
"specific",
"resource",
"to",
"satisfy",
"either",
"the",
"success",
"or",
"failure",
"condition"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/resource.go#L95-L148 |
134,754 | argoproj/argo | workflow/executor/resource.go | checkResourceState | func checkResourceState(resourceNamespace string, resourceName string, successReqs labels.Requirements, failReqs labels.Requirements) (bool, error) {
cmd, reader, err := startKubectlWaitCmd(resourceNamespace, resourceName)
if err != nil {
return false, err
}
defer func() {
_ = cmd.Process.Kill()
}()
for {
... | go | func checkResourceState(resourceNamespace string, resourceName string, successReqs labels.Requirements, failReqs labels.Requirements) (bool, error) {
cmd, reader, err := startKubectlWaitCmd(resourceNamespace, resourceName)
if err != nil {
return false, err
}
defer func() {
_ = cmd.Process.Kill()
}()
for {
... | [
"func",
"checkResourceState",
"(",
"resourceNamespace",
"string",
",",
"resourceName",
"string",
",",
"successReqs",
"labels",
".",
"Requirements",
",",
"failReqs",
"labels",
".",
"Requirements",
")",
"(",
"bool",
",",
"error",
")",
"{",
"cmd",
",",
"reader",
... | // Function to do the kubectl get -w command and then waiting on json reading. | [
"Function",
"to",
"do",
"the",
"kubectl",
"get",
"-",
"w",
"command",
"and",
"then",
"waiting",
"on",
"json",
"reading",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/resource.go#L151-L213 |
134,755 | argoproj/argo | workflow/executor/resource.go | startKubectlWaitCmd | func startKubectlWaitCmd(resourceNamespace string, resourceName string) (*exec.Cmd, *bufio.Reader, error) {
args := []string{"get", resourceName, "-w", "-o", "json"}
if resourceNamespace != "" {
args = append(args, "-n", resourceNamespace)
}
cmd := exec.Command("kubectl", args...)
stdout, err := cmd.StdoutPipe()... | go | func startKubectlWaitCmd(resourceNamespace string, resourceName string) (*exec.Cmd, *bufio.Reader, error) {
args := []string{"get", resourceName, "-w", "-o", "json"}
if resourceNamespace != "" {
args = append(args, "-n", resourceNamespace)
}
cmd := exec.Command("kubectl", args...)
stdout, err := cmd.StdoutPipe()... | [
"func",
"startKubectlWaitCmd",
"(",
"resourceNamespace",
"string",
",",
"resourceName",
"string",
")",
"(",
"*",
"exec",
".",
"Cmd",
",",
"*",
"bufio",
".",
"Reader",
",",
"error",
")",
"{",
"args",
":=",
"[",
"]",
"string",
"{",
"\"",
"\"",
",",
"reso... | // Start Kubectl command Get with -w return error if unable to start command | [
"Start",
"Kubectl",
"command",
"Get",
"with",
"-",
"w",
"return",
"error",
"if",
"unable",
"to",
"start",
"command"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/resource.go#L216-L233 |
134,756 | argoproj/argo | workflow/executor/resource.go | readJSON | func readJSON(reader *bufio.Reader) ([]byte, error) {
var buffer bytes.Buffer
for {
line, err := reader.ReadBytes('\n')
if err != nil {
return nil, err
}
isDelimiter := len(line) == 2 && line[0] == byte('}')
line = bytes.TrimSpace(line)
_, err = buffer.Write(line)
if err != nil {
return nil, err
... | go | func readJSON(reader *bufio.Reader) ([]byte, error) {
var buffer bytes.Buffer
for {
line, err := reader.ReadBytes('\n')
if err != nil {
return nil, err
}
isDelimiter := len(line) == 2 && line[0] == byte('}')
line = bytes.TrimSpace(line)
_, err = buffer.Write(line)
if err != nil {
return nil, err
... | [
"func",
"readJSON",
"(",
"reader",
"*",
"bufio",
".",
"Reader",
")",
"(",
"[",
"]",
"byte",
",",
"error",
")",
"{",
"var",
"buffer",
"bytes",
".",
"Buffer",
"\n",
"for",
"{",
"line",
",",
"err",
":=",
"reader",
".",
"ReadBytes",
"(",
"'\\n'",
")",
... | // readJSON reads from a reader line-by-line until it reaches "}\n" indicating end of json | [
"readJSON",
"reads",
"from",
"a",
"reader",
"line",
"-",
"by",
"-",
"line",
"until",
"it",
"reaches",
"}",
"\\",
"n",
"indicating",
"end",
"of",
"json"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/resource.go#L236-L254 |
134,757 | argoproj/argo | workflow/executor/resource.go | SaveResourceParameters | func (we *WorkflowExecutor) SaveResourceParameters(resourceNamespace string, resourceName string) error {
if len(we.Template.Outputs.Parameters) == 0 {
log.Infof("No output parameters")
return nil
}
log.Infof("Saving resource output parameters")
for i, param := range we.Template.Outputs.Parameters {
if param.... | go | func (we *WorkflowExecutor) SaveResourceParameters(resourceNamespace string, resourceName string) error {
if len(we.Template.Outputs.Parameters) == 0 {
log.Infof("No output parameters")
return nil
}
log.Infof("Saving resource output parameters")
for i, param := range we.Template.Outputs.Parameters {
if param.... | [
"func",
"(",
"we",
"*",
"WorkflowExecutor",
")",
"SaveResourceParameters",
"(",
"resourceNamespace",
"string",
",",
"resourceName",
"string",
")",
"error",
"{",
"if",
"len",
"(",
"we",
".",
"Template",
".",
"Outputs",
".",
"Parameters",
")",
"==",
"0",
"{",
... | // SaveResourceParameters will save any resource output parameters | [
"SaveResourceParameters",
"will",
"save",
"any",
"resource",
"output",
"parameters"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/resource.go#L257-L301 |
134,758 | argoproj/argo | util/retry/retry.go | IsRetryableKubeAPIError | func IsRetryableKubeAPIError(err error) bool {
// get original error if it was wrapped
err = argoerrs.Cause(err)
if apierr.IsNotFound(err) || apierr.IsForbidden(err) || apierr.IsInvalid(err) || apierr.IsMethodNotSupported(err) {
return false
}
return true
} | go | func IsRetryableKubeAPIError(err error) bool {
// get original error if it was wrapped
err = argoerrs.Cause(err)
if apierr.IsNotFound(err) || apierr.IsForbidden(err) || apierr.IsInvalid(err) || apierr.IsMethodNotSupported(err) {
return false
}
return true
} | [
"func",
"IsRetryableKubeAPIError",
"(",
"err",
"error",
")",
"bool",
"{",
"// get original error if it was wrapped",
"err",
"=",
"argoerrs",
".",
"Cause",
"(",
"err",
")",
"\n",
"if",
"apierr",
".",
"IsNotFound",
"(",
"err",
")",
"||",
"apierr",
".",
"IsForbid... | // IsRetryableKubeAPIError returns if the error is a retryable kubernetes error | [
"IsRetryableKubeAPIError",
"returns",
"if",
"the",
"error",
"is",
"a",
"retryable",
"kubernetes",
"error"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/util/retry/retry.go#L23-L30 |
134,759 | argoproj/argo | util/retry/retry.go | IsRetryableNetworkError | func IsRetryableNetworkError(err error) bool {
if err == nil {
return false
}
// get original error if it was wrapped
err = argoerrs.Cause(err)
errStr := err.Error()
switch err.(type) {
case net.Error:
switch err.(type) {
case *net.DNSError, *net.OpError, net.UnknownNetworkError:
return true
case *ur... | go | func IsRetryableNetworkError(err error) bool {
if err == nil {
return false
}
// get original error if it was wrapped
err = argoerrs.Cause(err)
errStr := err.Error()
switch err.(type) {
case net.Error:
switch err.(type) {
case *net.DNSError, *net.OpError, net.UnknownNetworkError:
return true
case *ur... | [
"func",
"IsRetryableNetworkError",
"(",
"err",
"error",
")",
"bool",
"{",
"if",
"err",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"// get original error if it was wrapped",
"err",
"=",
"argoerrs",
".",
"Cause",
"(",
"err",
")",
"\n",
"errStr",
":=... | // IsRetryableNetworkError returns whether or not the error is a retryable network error | [
"IsRetryableNetworkError",
"returns",
"whether",
"or",
"not",
"the",
"error",
"is",
"a",
"retryable",
"network",
"error"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/util/retry/retry.go#L33-L66 |
134,760 | argoproj/argo | workflow/controller/steps.go | updateOutboundNodes | func (woc *wfOperationCtx) updateOutboundNodes(nodeName string, tmpl *wfv1.Template) {
outbound := make([]string, 0)
// Find the last, initialized stepgroup node
var lastSGNode *wfv1.NodeStatus
for i := len(tmpl.Steps) - 1; i >= 0; i-- {
sgNode := woc.getNodeByName(fmt.Sprintf("%s[%d]", nodeName, i))
if sgNode ... | go | func (woc *wfOperationCtx) updateOutboundNodes(nodeName string, tmpl *wfv1.Template) {
outbound := make([]string, 0)
// Find the last, initialized stepgroup node
var lastSGNode *wfv1.NodeStatus
for i := len(tmpl.Steps) - 1; i >= 0; i-- {
sgNode := woc.getNodeByName(fmt.Sprintf("%s[%d]", nodeName, i))
if sgNode ... | [
"func",
"(",
"woc",
"*",
"wfOperationCtx",
")",
"updateOutboundNodes",
"(",
"nodeName",
"string",
",",
"tmpl",
"*",
"wfv1",
".",
"Template",
")",
"{",
"outbound",
":=",
"make",
"(",
"[",
"]",
"string",
",",
"0",
")",
"\n",
"// Find the last, initialized step... | // updateOutboundNodes set the outbound nodes from the last step group | [
"updateOutboundNodes",
"set",
"the",
"outbound",
"nodes",
"from",
"the",
"last",
"step",
"group"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/steps.go#L122-L148 |
134,761 | argoproj/argo | workflow/controller/steps.go | shouldExecute | func shouldExecute(when string) (bool, error) {
if when == "" {
return true, nil
}
expression, err := govaluate.NewEvaluableExpression(when)
if err != nil {
return false, errors.Errorf(errors.CodeBadRequest, "Invalid 'when' expression '%s': %v", when, err)
}
// The following loop converts govaluate variables ... | go | func shouldExecute(when string) (bool, error) {
if when == "" {
return true, nil
}
expression, err := govaluate.NewEvaluableExpression(when)
if err != nil {
return false, errors.Errorf(errors.CodeBadRequest, "Invalid 'when' expression '%s': %v", when, err)
}
// The following loop converts govaluate variables ... | [
"func",
"shouldExecute",
"(",
"when",
"string",
")",
"(",
"bool",
",",
"error",
")",
"{",
"if",
"when",
"==",
"\"",
"\"",
"{",
"return",
"true",
",",
"nil",
"\n",
"}",
"\n",
"expression",
",",
"err",
":=",
"govaluate",
".",
"NewEvaluableExpression",
"(... | // shouldExecute evaluates a already substituted when expression to decide whether or not a step should execute | [
"shouldExecute",
"evaluates",
"a",
"already",
"substituted",
"when",
"expression",
"to",
"decide",
"whether",
"or",
"not",
"a",
"step",
"should",
"execute"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/steps.go#L236-L269 |
134,762 | argoproj/argo | workflow/controller/steps.go | expandStep | func (woc *wfOperationCtx) expandStep(step wfv1.WorkflowStep) ([]wfv1.WorkflowStep, error) {
stepBytes, err := json.Marshal(step)
if err != nil {
return nil, errors.InternalWrapError(err)
}
fstTmpl := fasttemplate.New(string(stepBytes), "{{", "}}")
expandedStep := make([]wfv1.WorkflowStep, 0)
var items []wfv1.I... | go | func (woc *wfOperationCtx) expandStep(step wfv1.WorkflowStep) ([]wfv1.WorkflowStep, error) {
stepBytes, err := json.Marshal(step)
if err != nil {
return nil, errors.InternalWrapError(err)
}
fstTmpl := fasttemplate.New(string(stepBytes), "{{", "}}")
expandedStep := make([]wfv1.WorkflowStep, 0)
var items []wfv1.I... | [
"func",
"(",
"woc",
"*",
"wfOperationCtx",
")",
"expandStep",
"(",
"step",
"wfv1",
".",
"WorkflowStep",
")",
"(",
"[",
"]",
"wfv1",
".",
"WorkflowStep",
",",
"error",
")",
"{",
"stepBytes",
",",
"err",
":=",
"json",
".",
"Marshal",
"(",
"step",
")",
... | // expandStep expands a step containing withItems or withParams into multiple parallel steps | [
"expandStep",
"expands",
"a",
"step",
"containing",
"withItems",
"or",
"withParams",
"into",
"multiple",
"parallel",
"steps"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/steps.go#L343-L379 |
134,763 | argoproj/argo | version.go | GetVersion | func GetVersion() Version {
var versionStr string
if gitCommit != "" && gitTag != "" && gitTreeState == "clean" {
// if we have a clean tree state and the current commit is tagged,
// this is an official release.
versionStr = gitTag
} else {
// otherwise formulate a version string based on as much metadata
... | go | func GetVersion() Version {
var versionStr string
if gitCommit != "" && gitTag != "" && gitTreeState == "clean" {
// if we have a clean tree state and the current commit is tagged,
// this is an official release.
versionStr = gitTag
} else {
// otherwise formulate a version string based on as much metadata
... | [
"func",
"GetVersion",
"(",
")",
"Version",
"{",
"var",
"versionStr",
"string",
"\n",
"if",
"gitCommit",
"!=",
"\"",
"\"",
"&&",
"gitTag",
"!=",
"\"",
"\"",
"&&",
"gitTreeState",
"==",
"\"",
"\"",
"{",
"// if we have a clean tree state and the current commit is tag... | // GetVersion returns the version information | [
"GetVersion",
"returns",
"the",
"version",
"information"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/version.go#L35-L64 |
134,764 | argoproj/argo | workflow/executor/pns/pns.go | enterChroot | func (p *PNSExecutor) enterChroot() error {
if p.mainFS == nil {
return errors.InternalErrorf("could not chroot into main for artifact collection: container may have exited too quickly")
}
if err := p.mainFS.Chdir(); err != nil {
return errors.InternalWrapErrorf(err, "failed to chdir to main filesystem: %v", err... | go | func (p *PNSExecutor) enterChroot() error {
if p.mainFS == nil {
return errors.InternalErrorf("could not chroot into main for artifact collection: container may have exited too quickly")
}
if err := p.mainFS.Chdir(); err != nil {
return errors.InternalWrapErrorf(err, "failed to chdir to main filesystem: %v", err... | [
"func",
"(",
"p",
"*",
"PNSExecutor",
")",
"enterChroot",
"(",
")",
"error",
"{",
"if",
"p",
".",
"mainFS",
"==",
"nil",
"{",
"return",
"errors",
".",
"InternalErrorf",
"(",
"\"",
"\"",
")",
"\n",
"}",
"\n",
"if",
"err",
":=",
"p",
".",
"mainFS",
... | // enterChroot enters chroot of the main container | [
"enterChroot",
"enters",
"chroot",
"of",
"the",
"main",
"container"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/pns/pns.go#L92-L104 |
134,765 | argoproj/argo | workflow/executor/pns/pns.go | exitChroot | func (p *PNSExecutor) exitChroot() error {
if err := p.rootFS.Chdir(); err != nil {
return errors.InternalWrapError(err)
}
err := syscall.Chroot(".")
if err != nil {
return errors.InternalWrapError(err)
}
return nil
} | go | func (p *PNSExecutor) exitChroot() error {
if err := p.rootFS.Chdir(); err != nil {
return errors.InternalWrapError(err)
}
err := syscall.Chroot(".")
if err != nil {
return errors.InternalWrapError(err)
}
return nil
} | [
"func",
"(",
"p",
"*",
"PNSExecutor",
")",
"exitChroot",
"(",
")",
"error",
"{",
"if",
"err",
":=",
"p",
".",
"rootFS",
".",
"Chdir",
"(",
")",
";",
"err",
"!=",
"nil",
"{",
"return",
"errors",
".",
"InternalWrapError",
"(",
"err",
")",
"\n",
"}",
... | // exitChroot exits chroot | [
"exitChroot",
"exits",
"chroot"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/pns/pns.go#L107-L116 |
134,766 | argoproj/argo | workflow/executor/pns/pns.go | CopyFile | func (p *PNSExecutor) CopyFile(containerID string, sourcePath string, destPath string) (err error) {
destFile, err := os.Create(destPath)
if err != nil {
return err
}
defer func() {
// exit chroot and close the file. preserve the original error
deferErr := p.exitChroot()
if err == nil && deferErr != nil {
... | go | func (p *PNSExecutor) CopyFile(containerID string, sourcePath string, destPath string) (err error) {
destFile, err := os.Create(destPath)
if err != nil {
return err
}
defer func() {
// exit chroot and close the file. preserve the original error
deferErr := p.exitChroot()
if err == nil && deferErr != nil {
... | [
"func",
"(",
"p",
"*",
"PNSExecutor",
")",
"CopyFile",
"(",
"containerID",
"string",
",",
"sourcePath",
"string",
",",
"destPath",
"string",
")",
"(",
"err",
"error",
")",
"{",
"destFile",
",",
"err",
":=",
"os",
".",
"Create",
"(",
"destPath",
")",
"\... | // CopyFile copies a source file in a container to a local path | [
"CopyFile",
"copies",
"a",
"source",
"file",
"in",
"a",
"container",
"to",
"a",
"local",
"path"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/pns/pns.go#L119-L147 |
134,767 | argoproj/argo | workflow/executor/pns/pns.go | Kill | func (p *PNSExecutor) Kill(containerIDs []string) error {
var asyncErr error
wg := sync.WaitGroup{}
for _, cid := range containerIDs {
wg.Add(1)
go func(containerID string) {
err := p.killContainer(containerID)
if err != nil && asyncErr != nil {
asyncErr = err
}
wg.Done()
}(cid)
}
wg.Wait()
... | go | func (p *PNSExecutor) Kill(containerIDs []string) error {
var asyncErr error
wg := sync.WaitGroup{}
for _, cid := range containerIDs {
wg.Add(1)
go func(containerID string) {
err := p.killContainer(containerID)
if err != nil && asyncErr != nil {
asyncErr = err
}
wg.Done()
}(cid)
}
wg.Wait()
... | [
"func",
"(",
"p",
"*",
"PNSExecutor",
")",
"Kill",
"(",
"containerIDs",
"[",
"]",
"string",
")",
"error",
"{",
"var",
"asyncErr",
"error",
"\n",
"wg",
":=",
"sync",
".",
"WaitGroup",
"{",
"}",
"\n",
"for",
"_",
",",
"cid",
":=",
"range",
"containerID... | // Kill a list of containerIDs first with a SIGTERM then with a SIGKILL after a grace period | [
"Kill",
"a",
"list",
"of",
"containerIDs",
"first",
"with",
"a",
"SIGTERM",
"then",
"with",
"a",
"SIGKILL",
"after",
"a",
"grace",
"period"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/pns/pns.go#L232-L247 |
134,768 | argoproj/argo | workflow/executor/pns/pns.go | getContainerPID | func (p *PNSExecutor) getContainerPID(containerID string) (int, error) {
pid, ok := p.ctrIDToPid[containerID]
if ok {
return pid, nil
}
p.updateCtrIDMap()
pid, ok = p.ctrIDToPid[containerID]
if !ok {
return -1, errors.InternalErrorf("Failed to determine pid for containerID %s: container may have exited too qu... | go | func (p *PNSExecutor) getContainerPID(containerID string) (int, error) {
pid, ok := p.ctrIDToPid[containerID]
if ok {
return pid, nil
}
p.updateCtrIDMap()
pid, ok = p.ctrIDToPid[containerID]
if !ok {
return -1, errors.InternalErrorf("Failed to determine pid for containerID %s: container may have exited too qu... | [
"func",
"(",
"p",
"*",
"PNSExecutor",
")",
"getContainerPID",
"(",
"containerID",
"string",
")",
"(",
"int",
",",
"error",
")",
"{",
"pid",
",",
"ok",
":=",
"p",
".",
"ctrIDToPid",
"[",
"containerID",
"]",
"\n",
"if",
"ok",
"{",
"return",
"pid",
",",... | // getContainerPID returns the pid associated with the container id. Returns error if it was unable
// to be determined because no running root processes exist with that container ID | [
"getContainerPID",
"returns",
"the",
"pid",
"associated",
"with",
"the",
"container",
"id",
".",
"Returns",
"error",
"if",
"it",
"was",
"unable",
"to",
"be",
"determined",
"because",
"no",
"running",
"root",
"processes",
"exist",
"with",
"that",
"container",
"... | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/pns/pns.go#L284-L295 |
134,769 | argoproj/argo | workflow/executor/pns/pns.go | updateCtrIDMap | func (p *PNSExecutor) updateCtrIDMap() {
allProcs, err := gops.Processes()
if err != nil {
log.Warnf("Failed to list processes: %v", err)
return
}
for _, proc := range allProcs {
pid := proc.Pid()
if pid == 1 || pid == p.thisPID || proc.PPid() != 0 {
// ignore the pause container, our own pid, and non-ro... | go | func (p *PNSExecutor) updateCtrIDMap() {
allProcs, err := gops.Processes()
if err != nil {
log.Warnf("Failed to list processes: %v", err)
return
}
for _, proc := range allProcs {
pid := proc.Pid()
if pid == 1 || pid == p.thisPID || proc.PPid() != 0 {
// ignore the pause container, our own pid, and non-ro... | [
"func",
"(",
"p",
"*",
"PNSExecutor",
")",
"updateCtrIDMap",
"(",
")",
"{",
"allProcs",
",",
"err",
":=",
"gops",
".",
"Processes",
"(",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"log",
".",
"Warnf",
"(",
"\"",
"\"",
",",
"err",
")",
"\n",
"retur... | // updateCtrIDMap updates the mapping between container IDs to PIDs | [
"updateCtrIDMap",
"updates",
"the",
"mapping",
"between",
"container",
"IDs",
"to",
"PIDs"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/pns/pns.go#L298-L360 |
134,770 | argoproj/argo | workflow/executor/pns/pns.go | parseContainerID | func parseContainerID(pid int) (string, error) {
cgroupPath := fmt.Sprintf("/proc/%d/cgroup", pid)
cgroupFile, err := os.OpenFile(cgroupPath, os.O_RDONLY, os.ModePerm)
if err != nil {
return "", errors.InternalWrapError(err)
}
defer func() { _ = cgroupFile.Close() }()
sc := bufio.NewScanner(cgroupFile)
for sc.... | go | func parseContainerID(pid int) (string, error) {
cgroupPath := fmt.Sprintf("/proc/%d/cgroup", pid)
cgroupFile, err := os.OpenFile(cgroupPath, os.O_RDONLY, os.ModePerm)
if err != nil {
return "", errors.InternalWrapError(err)
}
defer func() { _ = cgroupFile.Close() }()
sc := bufio.NewScanner(cgroupFile)
for sc.... | [
"func",
"parseContainerID",
"(",
"pid",
"int",
")",
"(",
"string",
",",
"error",
")",
"{",
"cgroupPath",
":=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"pid",
")",
"\n",
"cgroupFile",
",",
"err",
":=",
"os",
".",
"OpenFile",
"(",
"cgroupPath",
",... | // parseContainerID parses the containerID of a pid | [
"parseContainerID",
"parses",
"the",
"containerID",
"of",
"a",
"pid"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/pns/pns.go#L363-L385 |
134,771 | argoproj/argo | workflow/artifacts/s3/s3.go | newS3Client | func (s3Driver *S3ArtifactDriver) newS3Client() (argos3.S3Client, error) {
opts := argos3.S3ClientOpts{
Endpoint: s3Driver.Endpoint,
Region: s3Driver.Region,
Secure: s3Driver.Secure,
AccessKey: s3Driver.AccessKey,
SecretKey: s3Driver.SecretKey,
}
return argos3.NewS3Client(opts)
} | go | func (s3Driver *S3ArtifactDriver) newS3Client() (argos3.S3Client, error) {
opts := argos3.S3ClientOpts{
Endpoint: s3Driver.Endpoint,
Region: s3Driver.Region,
Secure: s3Driver.Secure,
AccessKey: s3Driver.AccessKey,
SecretKey: s3Driver.SecretKey,
}
return argos3.NewS3Client(opts)
} | [
"func",
"(",
"s3Driver",
"*",
"S3ArtifactDriver",
")",
"newS3Client",
"(",
")",
"(",
"argos3",
".",
"S3Client",
",",
"error",
")",
"{",
"opts",
":=",
"argos3",
".",
"S3ClientOpts",
"{",
"Endpoint",
":",
"s3Driver",
".",
"Endpoint",
",",
"Region",
":",
"s... | // newMinioClient instantiates a new minio client object. | [
"newMinioClient",
"instantiates",
"a",
"new",
"minio",
"client",
"object",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/artifacts/s3/s3.go#L24-L33 |
134,772 | argoproj/argo | workflow/artifacts/s3/s3.go | Load | func (s3Driver *S3ArtifactDriver) Load(inputArtifact *wfv1.Artifact, path string) error {
err := wait.ExponentialBackoff(wait.Backoff{Duration: time.Second * 2, Factor: 2.0, Steps: 5, Jitter: 0.1},
func() (bool, error) {
log.Infof("S3 Load path: %s, key: %s", path, inputArtifact.S3.Key)
s3cli, err := s3Driver.... | go | func (s3Driver *S3ArtifactDriver) Load(inputArtifact *wfv1.Artifact, path string) error {
err := wait.ExponentialBackoff(wait.Backoff{Duration: time.Second * 2, Factor: 2.0, Steps: 5, Jitter: 0.1},
func() (bool, error) {
log.Infof("S3 Load path: %s, key: %s", path, inputArtifact.S3.Key)
s3cli, err := s3Driver.... | [
"func",
"(",
"s3Driver",
"*",
"S3ArtifactDriver",
")",
"Load",
"(",
"inputArtifact",
"*",
"wfv1",
".",
"Artifact",
",",
"path",
"string",
")",
"error",
"{",
"err",
":=",
"wait",
".",
"ExponentialBackoff",
"(",
"wait",
".",
"Backoff",
"{",
"Duration",
":",
... | // Load downloads artifacts from S3 compliant storage | [
"Load",
"downloads",
"artifacts",
"from",
"S3",
"compliant",
"storage"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/artifacts/s3/s3.go#L36-L72 |
134,773 | argoproj/argo | workflow/artifacts/s3/s3.go | Save | func (s3Driver *S3ArtifactDriver) Save(path string, outputArtifact *wfv1.Artifact) error {
err := wait.ExponentialBackoff(wait.Backoff{Duration: time.Second * 2, Factor: 2.0, Steps: 5, Jitter: 0.1},
func() (bool, error) {
log.Infof("S3 Save path: %s, key: %s", path, outputArtifact.S3.Key)
s3cli, err := s3Drive... | go | func (s3Driver *S3ArtifactDriver) Save(path string, outputArtifact *wfv1.Artifact) error {
err := wait.ExponentialBackoff(wait.Backoff{Duration: time.Second * 2, Factor: 2.0, Steps: 5, Jitter: 0.1},
func() (bool, error) {
log.Infof("S3 Save path: %s, key: %s", path, outputArtifact.S3.Key)
s3cli, err := s3Drive... | [
"func",
"(",
"s3Driver",
"*",
"S3ArtifactDriver",
")",
"Save",
"(",
"path",
"string",
",",
"outputArtifact",
"*",
"wfv1",
".",
"Artifact",
")",
"error",
"{",
"err",
":=",
"wait",
".",
"ExponentialBackoff",
"(",
"wait",
".",
"Backoff",
"{",
"Duration",
":",... | // Save saves an artifact to S3 compliant storage | [
"Save",
"saves",
"an",
"artifact",
"to",
"S3",
"compliant",
"storage"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/artifacts/s3/s3.go#L75-L103 |
134,774 | argoproj/argo | workflow/artifacts/raw/raw.go | Load | func (a *RawArtifactDriver) Load(artifact *wfv1.Artifact, path string) error {
lf, err := os.Create(path)
if err != nil {
return err
}
defer func() {
_ = lf.Close()
}()
_, err = lf.WriteString(artifact.Raw.Data)
return err
} | go | func (a *RawArtifactDriver) Load(artifact *wfv1.Artifact, path string) error {
lf, err := os.Create(path)
if err != nil {
return err
}
defer func() {
_ = lf.Close()
}()
_, err = lf.WriteString(artifact.Raw.Data)
return err
} | [
"func",
"(",
"a",
"*",
"RawArtifactDriver",
")",
"Load",
"(",
"artifact",
"*",
"wfv1",
".",
"Artifact",
",",
"path",
"string",
")",
"error",
"{",
"lf",
",",
"err",
":=",
"os",
".",
"Create",
"(",
"path",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
... | // Store raw content as artifact | [
"Store",
"raw",
"content",
"as",
"artifact"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/artifacts/raw/raw.go#L13-L24 |
134,775 | argoproj/argo | cmd/argo/commands/delete.go | NewDeleteCommand | func NewDeleteCommand() *cobra.Command {
var (
all bool
completed bool
older string
)
var command = &cobra.Command{
Use: "delete WORKFLOW",
Short: "delete a workflow and its associated pods",
Run: func(cmd *cobra.Command, args []string) {
wfClient = InitWorkflowClient()
if all {
de... | go | func NewDeleteCommand() *cobra.Command {
var (
all bool
completed bool
older string
)
var command = &cobra.Command{
Use: "delete WORKFLOW",
Short: "delete a workflow and its associated pods",
Run: func(cmd *cobra.Command, args []string) {
wfClient = InitWorkflowClient()
if all {
de... | [
"func",
"NewDeleteCommand",
"(",
")",
"*",
"cobra",
".",
"Command",
"{",
"var",
"(",
"all",
"bool",
"\n",
"completed",
"bool",
"\n",
"older",
"string",
"\n",
")",
"\n\n",
"var",
"command",
"=",
"&",
"cobra",
".",
"Command",
"{",
"Use",
":",
"\"",
"\"... | // NewDeleteCommand returns a new instance of an `argo delete` command | [
"NewDeleteCommand",
"returns",
"a",
"new",
"instance",
"of",
"an",
"argo",
"delete",
"command"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/cmd/argo/commands/delete.go#L23-L61 |
134,776 | argoproj/argo | pkg/client/clientset/versioned/fake/clientset_generated.go | ArgoprojV1alpha1 | func (c *Clientset) ArgoprojV1alpha1() argoprojv1alpha1.ArgoprojV1alpha1Interface {
return &fakeargoprojv1alpha1.FakeArgoprojV1alpha1{Fake: &c.Fake}
} | go | func (c *Clientset) ArgoprojV1alpha1() argoprojv1alpha1.ArgoprojV1alpha1Interface {
return &fakeargoprojv1alpha1.FakeArgoprojV1alpha1{Fake: &c.Fake}
} | [
"func",
"(",
"c",
"*",
"Clientset",
")",
"ArgoprojV1alpha1",
"(",
")",
"argoprojv1alpha1",
".",
"ArgoprojV1alpha1Interface",
"{",
"return",
"&",
"fakeargoprojv1alpha1",
".",
"FakeArgoprojV1alpha1",
"{",
"Fake",
":",
"&",
"c",
".",
"Fake",
"}",
"\n",
"}"
] | // ArgoprojV1alpha1 retrieves the ArgoprojV1alpha1Client | [
"ArgoprojV1alpha1",
"retrieves",
"the",
"ArgoprojV1alpha1Client"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/client/clientset/versioned/fake/clientset_generated.go#L59-L61 |
134,777 | argoproj/argo | pkg/client/clientset/versioned/fake/clientset_generated.go | Argoproj | func (c *Clientset) Argoproj() argoprojv1alpha1.ArgoprojV1alpha1Interface {
return &fakeargoprojv1alpha1.FakeArgoprojV1alpha1{Fake: &c.Fake}
} | go | func (c *Clientset) Argoproj() argoprojv1alpha1.ArgoprojV1alpha1Interface {
return &fakeargoprojv1alpha1.FakeArgoprojV1alpha1{Fake: &c.Fake}
} | [
"func",
"(",
"c",
"*",
"Clientset",
")",
"Argoproj",
"(",
")",
"argoprojv1alpha1",
".",
"ArgoprojV1alpha1Interface",
"{",
"return",
"&",
"fakeargoprojv1alpha1",
".",
"FakeArgoprojV1alpha1",
"{",
"Fake",
":",
"&",
"c",
".",
"Fake",
"}",
"\n",
"}"
] | // Argoproj retrieves the ArgoprojV1alpha1Client | [
"Argoproj",
"retrieves",
"the",
"ArgoprojV1alpha1Client"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/client/clientset/versioned/fake/clientset_generated.go#L64-L66 |
134,778 | argoproj/argo | workflow/controller/dag.go | taskNodeName | func (d *dagContext) taskNodeName(taskName string) string {
return fmt.Sprintf("%s.%s", d.boundaryName, taskName)
} | go | func (d *dagContext) taskNodeName(taskName string) string {
return fmt.Sprintf("%s.%s", d.boundaryName, taskName)
} | [
"func",
"(",
"d",
"*",
"dagContext",
")",
"taskNodeName",
"(",
"taskName",
"string",
")",
"string",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"d",
".",
"boundaryName",
",",
"taskName",
")",
"\n",
"}"
] | // taskNodeName formulates the nodeName for a dag task | [
"taskNodeName",
"formulates",
"the",
"nodeName",
"for",
"a",
"dag",
"task"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/dag.go#L45-L47 |
134,779 | argoproj/argo | workflow/controller/dag.go | taskNodeID | func (d *dagContext) taskNodeID(taskName string) string {
nodeName := d.taskNodeName(taskName)
return d.wf.NodeID(nodeName)
} | go | func (d *dagContext) taskNodeID(taskName string) string {
nodeName := d.taskNodeName(taskName)
return d.wf.NodeID(nodeName)
} | [
"func",
"(",
"d",
"*",
"dagContext",
")",
"taskNodeID",
"(",
"taskName",
"string",
")",
"string",
"{",
"nodeName",
":=",
"d",
".",
"taskNodeName",
"(",
"taskName",
")",
"\n",
"return",
"d",
".",
"wf",
".",
"NodeID",
"(",
"nodeName",
")",
"\n",
"}"
] | // taskNodeID formulates the node ID for a dag task | [
"taskNodeID",
"formulates",
"the",
"node",
"ID",
"for",
"a",
"dag",
"task"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/dag.go#L50-L53 |
134,780 | argoproj/argo | workflow/controller/dag.go | assessDAGPhase | func (d *dagContext) assessDAGPhase(targetTasks []string, nodes map[string]wfv1.NodeStatus) wfv1.NodePhase {
// First check all our nodes to see if anything is still running. If so, then the DAG is
// considered still running (even if there are failures). Remember any failures and if retry
// nodes have been exhaust... | go | func (d *dagContext) assessDAGPhase(targetTasks []string, nodes map[string]wfv1.NodeStatus) wfv1.NodePhase {
// First check all our nodes to see if anything is still running. If so, then the DAG is
// considered still running (even if there are failures). Remember any failures and if retry
// nodes have been exhaust... | [
"func",
"(",
"d",
"*",
"dagContext",
")",
"assessDAGPhase",
"(",
"targetTasks",
"[",
"]",
"string",
",",
"nodes",
"map",
"[",
"string",
"]",
"wfv1",
".",
"NodeStatus",
")",
"wfv1",
".",
"NodePhase",
"{",
"// First check all our nodes to see if anything is still ru... | // assessDAGPhase assesses the overall DAG status | [
"assessDAGPhase",
"assesses",
"the",
"overall",
"DAG",
"status"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/dag.go#L65-L108 |
134,781 | argoproj/argo | workflow/controller/dag.go | findLeafTaskNames | func findLeafTaskNames(tasks []wfv1.DAGTask) []string {
taskIsLeaf := make(map[string]bool)
for _, task := range tasks {
if _, ok := taskIsLeaf[task.Name]; !ok {
taskIsLeaf[task.Name] = true
}
for _, dependency := range task.Dependencies {
taskIsLeaf[dependency] = false
}
}
leafTaskNames := make([]str... | go | func findLeafTaskNames(tasks []wfv1.DAGTask) []string {
taskIsLeaf := make(map[string]bool)
for _, task := range tasks {
if _, ok := taskIsLeaf[task.Name]; !ok {
taskIsLeaf[task.Name] = true
}
for _, dependency := range task.Dependencies {
taskIsLeaf[dependency] = false
}
}
leafTaskNames := make([]str... | [
"func",
"findLeafTaskNames",
"(",
"tasks",
"[",
"]",
"wfv1",
".",
"DAGTask",
")",
"[",
"]",
"string",
"{",
"taskIsLeaf",
":=",
"make",
"(",
"map",
"[",
"string",
"]",
"bool",
")",
"\n",
"for",
"_",
",",
"task",
":=",
"range",
"tasks",
"{",
"if",
"_... | // findLeafTaskNames finds the names of all tasks whom no other nodes depend on.
// This list of tasks is used as the the default list of targets when dag.targets is omitted. | [
"findLeafTaskNames",
"finds",
"the",
"names",
"of",
"all",
"tasks",
"whom",
"no",
"other",
"nodes",
"depend",
"on",
".",
"This",
"list",
"of",
"tasks",
"is",
"used",
"as",
"the",
"the",
"default",
"list",
"of",
"targets",
"when",
"dag",
".",
"targets",
"... | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/dag.go#L422-L439 |
134,782 | argoproj/argo | workflow/controller/dag.go | expandTask | func (woc *wfOperationCtx) expandTask(task wfv1.DAGTask) ([]wfv1.DAGTask, error) {
taskBytes, err := json.Marshal(task)
if err != nil {
return nil, errors.InternalWrapError(err)
}
var items []wfv1.Item
if len(task.WithItems) > 0 {
items = task.WithItems
} else if task.WithParam != "" {
err = json.Unmarshal(... | go | func (woc *wfOperationCtx) expandTask(task wfv1.DAGTask) ([]wfv1.DAGTask, error) {
taskBytes, err := json.Marshal(task)
if err != nil {
return nil, errors.InternalWrapError(err)
}
var items []wfv1.Item
if len(task.WithItems) > 0 {
items = task.WithItems
} else if task.WithParam != "" {
err = json.Unmarshal(... | [
"func",
"(",
"woc",
"*",
"wfOperationCtx",
")",
"expandTask",
"(",
"task",
"wfv1",
".",
"DAGTask",
")",
"(",
"[",
"]",
"wfv1",
".",
"DAGTask",
",",
"error",
")",
"{",
"taskBytes",
",",
"err",
":=",
"json",
".",
"Marshal",
"(",
"task",
")",
"\n",
"i... | // expandTask expands a single DAG task containing withItems, withParams, withSequence into multiple parallel tasks | [
"expandTask",
"expands",
"a",
"single",
"DAG",
"task",
"containing",
"withItems",
"withParams",
"withSequence",
"into",
"multiple",
"parallel",
"tasks"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/dag.go#L442-L477 |
134,783 | argoproj/argo | workflow/executor/kubelet/client.go | CreateArchive | func (k *kubeletClient) CreateArchive(containerID, sourcePath string) (*bytes.Buffer, error) {
return k.getCommandOutput(containerID, fmt.Sprintf("command=tar&command=-cf&command=-&command=%s&output=1", sourcePath))
} | go | func (k *kubeletClient) CreateArchive(containerID, sourcePath string) (*bytes.Buffer, error) {
return k.getCommandOutput(containerID, fmt.Sprintf("command=tar&command=-cf&command=-&command=%s&output=1", sourcePath))
} | [
"func",
"(",
"k",
"*",
"kubeletClient",
")",
"CreateArchive",
"(",
"containerID",
",",
"sourcePath",
"string",
")",
"(",
"*",
"bytes",
".",
"Buffer",
",",
"error",
")",
"{",
"return",
"k",
".",
"getCommandOutput",
"(",
"containerID",
",",
"fmt",
".",
"Sp... | // createArchive exec in the given containerID and create a tarball of the given sourcePath. Works with directory | [
"createArchive",
"exec",
"in",
"the",
"given",
"containerID",
"and",
"create",
"a",
"tarball",
"of",
"the",
"given",
"sourcePath",
".",
"Works",
"with",
"directory"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/executor/kubelet/client.go#L245-L247 |
134,784 | argoproj/argo | pkg/client/clientset/versioned/typed/workflow/v1alpha1/fake/fake_workflow.go | Get | func (c *FakeWorkflows) Get(name string, options v1.GetOptions) (result *v1alpha1.Workflow, err error) {
obj, err := c.Fake.
Invokes(testing.NewGetAction(workflowsResource, c.ns, name), &v1alpha1.Workflow{})
if obj == nil {
return nil, err
}
return obj.(*v1alpha1.Workflow), err
} | go | func (c *FakeWorkflows) Get(name string, options v1.GetOptions) (result *v1alpha1.Workflow, err error) {
obj, err := c.Fake.
Invokes(testing.NewGetAction(workflowsResource, c.ns, name), &v1alpha1.Workflow{})
if obj == nil {
return nil, err
}
return obj.(*v1alpha1.Workflow), err
} | [
"func",
"(",
"c",
"*",
"FakeWorkflows",
")",
"Get",
"(",
"name",
"string",
",",
"options",
"v1",
".",
"GetOptions",
")",
"(",
"result",
"*",
"v1alpha1",
".",
"Workflow",
",",
"err",
"error",
")",
"{",
"obj",
",",
"err",
":=",
"c",
".",
"Fake",
".",... | // Get takes name of the workflow, and returns the corresponding workflow object, and an error if there is any. | [
"Get",
"takes",
"name",
"of",
"the",
"workflow",
"and",
"returns",
"the",
"corresponding",
"workflow",
"object",
"and",
"an",
"error",
"if",
"there",
"is",
"any",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/client/clientset/versioned/typed/workflow/v1alpha1/fake/fake_workflow.go#L26-L34 |
134,785 | argoproj/argo | pkg/client/clientset/versioned/typed/workflow/v1alpha1/fake/fake_workflow.go | List | func (c *FakeWorkflows) List(opts v1.ListOptions) (result *v1alpha1.WorkflowList, err error) {
obj, err := c.Fake.
Invokes(testing.NewListAction(workflowsResource, workflowsKind, c.ns, opts), &v1alpha1.WorkflowList{})
if obj == nil {
return nil, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if la... | go | func (c *FakeWorkflows) List(opts v1.ListOptions) (result *v1alpha1.WorkflowList, err error) {
obj, err := c.Fake.
Invokes(testing.NewListAction(workflowsResource, workflowsKind, c.ns, opts), &v1alpha1.WorkflowList{})
if obj == nil {
return nil, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if la... | [
"func",
"(",
"c",
"*",
"FakeWorkflows",
")",
"List",
"(",
"opts",
"v1",
".",
"ListOptions",
")",
"(",
"result",
"*",
"v1alpha1",
".",
"WorkflowList",
",",
"err",
"error",
")",
"{",
"obj",
",",
"err",
":=",
"c",
".",
"Fake",
".",
"Invokes",
"(",
"te... | // List takes label and field selectors, and returns the list of Workflows that match those selectors. | [
"List",
"takes",
"label",
"and",
"field",
"selectors",
"and",
"returns",
"the",
"list",
"of",
"Workflows",
"that",
"match",
"those",
"selectors",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/client/clientset/versioned/typed/workflow/v1alpha1/fake/fake_workflow.go#L37-L56 |
134,786 | argoproj/argo | pkg/client/clientset/versioned/typed/workflow/v1alpha1/fake/fake_workflow.go | Watch | func (c *FakeWorkflows) Watch(opts v1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchAction(workflowsResource, c.ns, opts))
} | go | func (c *FakeWorkflows) Watch(opts v1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchAction(workflowsResource, c.ns, opts))
} | [
"func",
"(",
"c",
"*",
"FakeWorkflows",
")",
"Watch",
"(",
"opts",
"v1",
".",
"ListOptions",
")",
"(",
"watch",
".",
"Interface",
",",
"error",
")",
"{",
"return",
"c",
".",
"Fake",
".",
"InvokesWatch",
"(",
"testing",
".",
"NewWatchAction",
"(",
"work... | // Watch returns a watch.Interface that watches the requested workflows. | [
"Watch",
"returns",
"a",
"watch",
".",
"Interface",
"that",
"watches",
"the",
"requested",
"workflows",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/client/clientset/versioned/typed/workflow/v1alpha1/fake/fake_workflow.go#L59-L63 |
134,787 | argoproj/argo | pkg/client/clientset/versioned/typed/workflow/v1alpha1/fake/fake_workflow.go | Delete | func (c *FakeWorkflows) Delete(name string, options *v1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteAction(workflowsResource, c.ns, name), &v1alpha1.Workflow{})
return err
} | go | func (c *FakeWorkflows) Delete(name string, options *v1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteAction(workflowsResource, c.ns, name), &v1alpha1.Workflow{})
return err
} | [
"func",
"(",
"c",
"*",
"FakeWorkflows",
")",
"Delete",
"(",
"name",
"string",
",",
"options",
"*",
"v1",
".",
"DeleteOptions",
")",
"error",
"{",
"_",
",",
"err",
":=",
"c",
".",
"Fake",
".",
"Invokes",
"(",
"testing",
".",
"NewDeleteAction",
"(",
"w... | // Delete takes name of the workflow and deletes it. Returns an error if one occurs. | [
"Delete",
"takes",
"name",
"of",
"the",
"workflow",
"and",
"deletes",
"it",
".",
"Returns",
"an",
"error",
"if",
"one",
"occurs",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/client/clientset/versioned/typed/workflow/v1alpha1/fake/fake_workflow.go#L88-L93 |
134,788 | argoproj/argo | pkg/client/clientset/versioned/typed/workflow/v1alpha1/fake/fake_workflow.go | Patch | func (c *FakeWorkflows) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Workflow, err error) {
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceAction(workflowsResource, c.ns, name, data, subresources...), &v1alpha1.Workflow{})
if obj == nil {
return nil, err
... | go | func (c *FakeWorkflows) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Workflow, err error) {
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceAction(workflowsResource, c.ns, name, data, subresources...), &v1alpha1.Workflow{})
if obj == nil {
return nil, err
... | [
"func",
"(",
"c",
"*",
"FakeWorkflows",
")",
"Patch",
"(",
"name",
"string",
",",
"pt",
"types",
".",
"PatchType",
",",
"data",
"[",
"]",
"byte",
",",
"subresources",
"...",
"string",
")",
"(",
"result",
"*",
"v1alpha1",
".",
"Workflow",
",",
"err",
... | // Patch applies the patch and returns the patched workflow. | [
"Patch",
"applies",
"the",
"patch",
"and",
"returns",
"the",
"patched",
"workflow",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/pkg/client/clientset/versioned/typed/workflow/v1alpha1/fake/fake_workflow.go#L104-L112 |
134,789 | argoproj/argo | workflow/artifacts/git/git.go | Load | func (g *GitArtifactDriver) Load(inputArtifact *wfv1.Artifact, path string) error {
if g.SSHPrivateKey != "" {
signer, err := ssh.ParsePrivateKey([]byte(g.SSHPrivateKey))
if err != nil {
return errors.InternalWrapError(err)
}
auth := &ssh2.PublicKeys{User: "git", Signer: signer}
if g.InsecureIgnoreHostKey... | go | func (g *GitArtifactDriver) Load(inputArtifact *wfv1.Artifact, path string) error {
if g.SSHPrivateKey != "" {
signer, err := ssh.ParsePrivateKey([]byte(g.SSHPrivateKey))
if err != nil {
return errors.InternalWrapError(err)
}
auth := &ssh2.PublicKeys{User: "git", Signer: signer}
if g.InsecureIgnoreHostKey... | [
"func",
"(",
"g",
"*",
"GitArtifactDriver",
")",
"Load",
"(",
"inputArtifact",
"*",
"wfv1",
".",
"Artifact",
",",
"path",
"string",
")",
"error",
"{",
"if",
"g",
".",
"SSHPrivateKey",
"!=",
"\"",
"\"",
"{",
"signer",
",",
"err",
":=",
"ssh",
".",
"Pa... | // Load download artifacts from an git URL | [
"Load",
"download",
"artifacts",
"from",
"an",
"git",
"URL"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/artifacts/git/git.go#L31-L48 |
134,790 | argoproj/argo | workflow/artifacts/git/git.go | Save | func (g *GitArtifactDriver) Save(path string, outputArtifact *wfv1.Artifact) error {
return errors.Errorf(errors.CodeBadRequest, "Git output artifacts unsupported")
} | go | func (g *GitArtifactDriver) Save(path string, outputArtifact *wfv1.Artifact) error {
return errors.Errorf(errors.CodeBadRequest, "Git output artifacts unsupported")
} | [
"func",
"(",
"g",
"*",
"GitArtifactDriver",
")",
"Save",
"(",
"path",
"string",
",",
"outputArtifact",
"*",
"wfv1",
".",
"Artifact",
")",
"error",
"{",
"return",
"errors",
".",
"Errorf",
"(",
"errors",
".",
"CodeBadRequest",
",",
"\"",
"\"",
")",
"\n",
... | // Save is unsupported for git output artifacts | [
"Save",
"is",
"unsupported",
"for",
"git",
"output",
"artifacts"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/artifacts/git/git.go#L51-L53 |
134,791 | argoproj/argo | cmd/argo/commands/list.go | parameterString | func parameterString(params []wfv1.Parameter) string {
truncateString := func(str string, num int) string {
bnoden := str
if len(str) > num {
if num > 3 {
num -= 3
}
bnoden = str[0:num-15] + "..." + str[len(str)-15:]
}
return bnoden
}
pStrs := make([]string, 0)
for _, p := range params {
if ... | go | func parameterString(params []wfv1.Parameter) string {
truncateString := func(str string, num int) string {
bnoden := str
if len(str) > num {
if num > 3 {
num -= 3
}
bnoden = str[0:num-15] + "..." + str[len(str)-15:]
}
return bnoden
}
pStrs := make([]string, 0)
for _, p := range params {
if ... | [
"func",
"parameterString",
"(",
"params",
"[",
"]",
"wfv1",
".",
"Parameter",
")",
"string",
"{",
"truncateString",
":=",
"func",
"(",
"str",
"string",
",",
"num",
"int",
")",
"string",
"{",
"bnoden",
":=",
"str",
"\n",
"if",
"len",
"(",
"str",
")",
... | // parameterString returns a human readable display string of the parameters, truncating if necessary | [
"parameterString",
"returns",
"a",
"human",
"readable",
"display",
"string",
"of",
"the",
"parameters",
"truncating",
"if",
"necessary"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/cmd/argo/commands/list.go#L162-L182 |
134,792 | argoproj/argo | cmd/argo/commands/list.go | workflowStatus | func workflowStatus(wf *wfv1.Workflow) wfv1.NodePhase {
switch wf.Status.Phase {
case wfv1.NodeRunning:
if util.IsWorkflowSuspended(wf) {
return "Running (Suspended)"
}
return wf.Status.Phase
case wfv1.NodeFailed:
if util.IsWorkflowTerminated(wf) {
return "Failed (Terminated)"
}
return wf.Status.Ph... | go | func workflowStatus(wf *wfv1.Workflow) wfv1.NodePhase {
switch wf.Status.Phase {
case wfv1.NodeRunning:
if util.IsWorkflowSuspended(wf) {
return "Running (Suspended)"
}
return wf.Status.Phase
case wfv1.NodeFailed:
if util.IsWorkflowTerminated(wf) {
return "Failed (Terminated)"
}
return wf.Status.Ph... | [
"func",
"workflowStatus",
"(",
"wf",
"*",
"wfv1",
".",
"Workflow",
")",
"wfv1",
".",
"NodePhase",
"{",
"switch",
"wf",
".",
"Status",
".",
"Phase",
"{",
"case",
"wfv1",
".",
"NodeRunning",
":",
"if",
"util",
".",
"IsWorkflowSuspended",
"(",
"wf",
")",
... | // workflowStatus returns a human readable inferred workflow status based on workflow phase and conditions | [
"workflowStatus",
"returns",
"a",
"human",
"readable",
"inferred",
"workflow",
"status",
"based",
"on",
"workflow",
"phase",
"and",
"conditions"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/cmd/argo/commands/list.go#L207-L227 |
134,793 | argoproj/argo | workflow/controller/exec_control.go | applyExecutionControl | func (woc *wfOperationCtx) applyExecutionControl(pod *apiv1.Pod, wfNodesLock *sync.RWMutex) error {
if pod == nil {
return nil
}
switch pod.Status.Phase {
case apiv1.PodSucceeded, apiv1.PodFailed:
// Skip any pod which are already completed
return nil
case apiv1.PodPending:
// Check if we are past the work... | go | func (woc *wfOperationCtx) applyExecutionControl(pod *apiv1.Pod, wfNodesLock *sync.RWMutex) error {
if pod == nil {
return nil
}
switch pod.Status.Phase {
case apiv1.PodSucceeded, apiv1.PodFailed:
// Skip any pod which are already completed
return nil
case apiv1.PodPending:
// Check if we are past the work... | [
"func",
"(",
"woc",
"*",
"wfOperationCtx",
")",
"applyExecutionControl",
"(",
"pod",
"*",
"apiv1",
".",
"Pod",
",",
"wfNodesLock",
"*",
"sync",
".",
"RWMutex",
")",
"error",
"{",
"if",
"pod",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"switch"... | // applyExecutionControl will ensure a pod's execution control annotation is up-to-date
// kills any pending pods when workflow has reached it's deadline | [
"applyExecutionControl",
"will",
"ensure",
"a",
"pod",
"s",
"execution",
"control",
"annotation",
"is",
"up",
"-",
"to",
"-",
"date",
"kills",
"any",
"pending",
"pods",
"when",
"workflow",
"has",
"reached",
"it",
"s",
"deadline"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/exec_control.go#L19-L77 |
134,794 | argoproj/argo | workflow/controller/exec_control.go | killDaemonedChildren | func (woc *wfOperationCtx) killDaemonedChildren(nodeID string) error {
woc.log.Infof("Checking daemoned children of %s", nodeID)
var firstErr error
execCtl := common.ExecutionControl{
Deadline: &time.Time{},
}
for _, childNode := range woc.wf.Status.Nodes {
if childNode.BoundaryID != nodeID {
continue
}
... | go | func (woc *wfOperationCtx) killDaemonedChildren(nodeID string) error {
woc.log.Infof("Checking daemoned children of %s", nodeID)
var firstErr error
execCtl := common.ExecutionControl{
Deadline: &time.Time{},
}
for _, childNode := range woc.wf.Status.Nodes {
if childNode.BoundaryID != nodeID {
continue
}
... | [
"func",
"(",
"woc",
"*",
"wfOperationCtx",
")",
"killDaemonedChildren",
"(",
"nodeID",
"string",
")",
"error",
"{",
"woc",
".",
"log",
".",
"Infof",
"(",
"\"",
"\"",
",",
"nodeID",
")",
"\n",
"var",
"firstErr",
"error",
"\n",
"execCtl",
":=",
"common",
... | // killDaemonedChildren kill any daemoned pods of a steps or DAG template node. | [
"killDaemonedChildren",
"kill",
"any",
"daemoned",
"pods",
"of",
"a",
"steps",
"or",
"DAG",
"template",
"node",
"."
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/exec_control.go#L80-L102 |
134,795 | argoproj/argo | workflow/controller/exec_control.go | updateExecutionControl | func (woc *wfOperationCtx) updateExecutionControl(podName string, execCtl common.ExecutionControl) error {
execCtlBytes, err := json.Marshal(execCtl)
if err != nil {
return errors.InternalWrapError(err)
}
woc.log.Infof("Updating execution control of %s: %s", podName, execCtlBytes)
err = common.AddPodAnnotation(... | go | func (woc *wfOperationCtx) updateExecutionControl(podName string, execCtl common.ExecutionControl) error {
execCtlBytes, err := json.Marshal(execCtl)
if err != nil {
return errors.InternalWrapError(err)
}
woc.log.Infof("Updating execution control of %s: %s", podName, execCtlBytes)
err = common.AddPodAnnotation(... | [
"func",
"(",
"woc",
"*",
"wfOperationCtx",
")",
"updateExecutionControl",
"(",
"podName",
"string",
",",
"execCtl",
"common",
".",
"ExecutionControl",
")",
"error",
"{",
"execCtlBytes",
",",
"err",
":=",
"json",
".",
"Marshal",
"(",
"execCtl",
")",
"\n",
"if... | // updateExecutionControl updates the execution control parameters | [
"updateExecutionControl",
"updates",
"the",
"execution",
"control",
"parameters"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/workflow/controller/exec_control.go#L105-L148 |
134,796 | argoproj/argo | util/cmd/cmd.go | MustIsDir | func MustIsDir(filePath string) bool {
fileInfo, err := os.Stat(filePath)
if err != nil {
log.Fatal(err)
}
return fileInfo.IsDir()
} | go | func MustIsDir(filePath string) bool {
fileInfo, err := os.Stat(filePath)
if err != nil {
log.Fatal(err)
}
return fileInfo.IsDir()
} | [
"func",
"MustIsDir",
"(",
"filePath",
"string",
")",
"bool",
"{",
"fileInfo",
",",
"err",
":=",
"os",
".",
"Stat",
"(",
"filePath",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"log",
".",
"Fatal",
"(",
"err",
")",
"\n",
"}",
"\n",
"return",
"fileInfo... | // MustIsDir returns whether or not the given filePath is a directory. Exits if path does not exist | [
"MustIsDir",
"returns",
"whether",
"or",
"not",
"the",
"given",
"filePath",
"is",
"a",
"directory",
".",
"Exits",
"if",
"path",
"does",
"not",
"exist"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/util/cmd/cmd.go#L45-L51 |
134,797 | argoproj/argo | util/cmd/cmd.go | MustHomeDir | func MustHomeDir() string {
usr, err := user.Current()
if err != nil {
log.Fatal(err)
}
return usr.HomeDir
} | go | func MustHomeDir() string {
usr, err := user.Current()
if err != nil {
log.Fatal(err)
}
return usr.HomeDir
} | [
"func",
"MustHomeDir",
"(",
")",
"string",
"{",
"usr",
",",
"err",
":=",
"user",
".",
"Current",
"(",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"log",
".",
"Fatal",
"(",
"err",
")",
"\n",
"}",
"\n",
"return",
"usr",
".",
"HomeDir",
"\n",
"}"
] | // MustHomeDir returns the home directory of the user | [
"MustHomeDir",
"returns",
"the",
"home",
"directory",
"of",
"the",
"user"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/util/cmd/cmd.go#L54-L60 |
134,798 | argoproj/argo | util/cmd/cmd.go | IsURL | func IsURL(u string) bool {
var parsedURL *url.URL
var err error
parsedURL, err = url.ParseRequestURI(u)
if err == nil {
if parsedURL != nil && parsedURL.Host != "" {
return true
}
}
return false
} | go | func IsURL(u string) bool {
var parsedURL *url.URL
var err error
parsedURL, err = url.ParseRequestURI(u)
if err == nil {
if parsedURL != nil && parsedURL.Host != "" {
return true
}
}
return false
} | [
"func",
"IsURL",
"(",
"u",
"string",
")",
"bool",
"{",
"var",
"parsedURL",
"*",
"url",
".",
"URL",
"\n",
"var",
"err",
"error",
"\n\n",
"parsedURL",
",",
"err",
"=",
"url",
".",
"ParseRequestURI",
"(",
"u",
")",
"\n",
"if",
"err",
"==",
"nil",
"{",... | // IsURL returns whether or not a string is a URL | [
"IsURL",
"returns",
"whether",
"or",
"not",
"a",
"string",
"is",
"a",
"URL"
] | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/util/cmd/cmd.go#L63-L74 |
134,799 | argoproj/argo | util/unstructured/unstructured.go | NewUnstructuredInformer | func NewUnstructuredInformer(resource schema.GroupVersionResource, client dynamic.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredUnstructuredInformer(resource, client, namespace, resyncPeriod, indexers, nil)
} | go | func NewUnstructuredInformer(resource schema.GroupVersionResource, client dynamic.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredUnstructuredInformer(resource, client, namespace, resyncPeriod, indexers, nil)
} | [
"func",
"NewUnstructuredInformer",
"(",
"resource",
"schema",
".",
"GroupVersionResource",
",",
"client",
"dynamic",
".",
"Interface",
",",
"namespace",
"string",
",",
"resyncPeriod",
"time",
".",
"Duration",
",",
"indexers",
"cache",
".",
"Indexers",
")",
"cache"... | // NewUnstructuredInformer constructs a new informer for Unstructured type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server. | [
"NewUnstructuredInformer",
"constructs",
"a",
"new",
"informer",
"for",
"Unstructured",
"type",
".",
"Always",
"prefer",
"using",
"an",
"informer",
"factory",
"to",
"get",
"a",
"shared",
"informer",
"instead",
"of",
"getting",
"an",
"independent",
"one",
".",
"T... | 4e37a444bde2a034885d0db35f7b38684505063e | https://github.com/argoproj/argo/blob/4e37a444bde2a034885d0db35f7b38684505063e/util/unstructured/unstructured.go#L19-L21 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.