add git clone
This commit is contained in:
@@ -2,6 +2,8 @@ package schema
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"fmt"
|
||||
"regexp"
|
||||
@@ -10,6 +12,11 @@ import (
|
||||
|
||||
type CharSchemaPluginName string
|
||||
|
||||
func (cspn CharSchemaPluginName) Hash() string {
|
||||
bytes := sha256.Sum256([]byte(cspn))
|
||||
return hex.EncodeToString(bytes[:])
|
||||
}
|
||||
|
||||
type PluginOps struct {
|
||||
Org string
|
||||
RepositoryName string
|
||||
|
Reference in New Issue
Block a user