Skip to content

Commit

Permalink
vendor update
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Desai <[email protected]>
  • Loading branch information
harsh-px authored and pault84 committed Jun 11, 2021
1 parent b9ee01e commit 11178fb
Show file tree
Hide file tree
Showing 107 changed files with 49,834 additions and 44 deletions.
72 changes: 71 additions & 1 deletion cmd/3ncryptor/3ncryptor.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,77 @@
package main

import "github.com/sirupsen/logrus"
import (
"flag"
"github.com/libopenstorage/openstorage/api"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"k8s.io/kubectl/pkg/cmd/util"
"os"
)

var (
namespace string
)

// listvols list all volumes in provided namespace
func listvols(namespace string) ([]*api.Volume, error) {
return nil, nil
}

func attachVol(vol *api.Volume) error {
return nil
}

func createVol(vol *api.Volume) (*api.Volume, error) {
return nil, nil
}

func snapVol(vol *api.Volume) (*api.Volume, error) {
return nil, nil
}

func cloneVol(vol *api.Volume) (*api.Volume, error) {
return nil, nil
}

func main() {
logrus.Infof("Hello from 3ncryptor")
if err := NewCommand().Execute(); err != nil {
os.Exit(1)
}
}


// NewCommand returns a restic command wrapper
func NewCommand() *cobra.Command {
cmds := &cobra.Command{
Use: "restic_executor",
Short: "a command executor for long running restic commands",
}

cmds.PersistentFlags().StringVarP(&namespace, "namespace", "n", "", "Namespace for this command")

cmds.AddCommand(
newEncryptCommand(),
)
cmds.PersistentFlags().AddGoFlagSet(flag.CommandLine)
err := flag.CommandLine.Parse([]string{})
if err != nil {
util.CheckErr(err)
return nil
}

return cmds
}

func newEncryptCommand() *cobra.Command {
encCommand := &cobra.Command{
Use: "encrypt",
Short: "Start encryption",
Run: func(c *cobra.Command, args []string) {
logrus.Infof("Hello from 3ncryptor: encrypt")

},
}
return encCommand
}
1 change: 1 addition & 0 deletions cmd/3ncryptor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go run 3ncryptor.go encrypt
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go 1.13
require (
github.com/cheynewallace/tabby v1.1.0 // indirect
github.com/kubernetes-incubator/external-storage v0.0.0-00010101000000-000000000000
github.com/libopenstorage/openstorage v8.0.0+incompatible
github.com/libopenstorage/openstorage-sdk-clients v0.69.27 // indirect
github.com/libopenstorage/stork v1.3.0-beta1.0.20200630005842-9255e7a98775
github.com/portworx/pxc v0.31.1
Expand Down
49 changes: 6 additions & 43 deletions go.sum

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions vendor/github.com/coreos/go-oidc/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions vendor/github.com/coreos/go-oidc/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

71 changes: 71 additions & 0 deletions vendor/github.com/coreos/go-oidc/CONTRIBUTING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions vendor/github.com/coreos/go-oidc/DCO

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 11178fb

Please sign in to comment.