Browse Source

Merge pull request #500 from eveneast/main

Fix some typos in comments
dependabot/go_modules/golang.org/x/crypto-0.31.0
yedf2 2 years ago
committed by GitHub
parent
commit
5a58f8b146
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 16
      charts/README.md
  2. 2
      client/dtmcli/dtmimp/types.go
  3. 6
      client/workflow/workflow.go

16
charts/README.md

@ -42,12 +42,12 @@ helm delete -n dtm-system dtm
### Ingress parameters ### Ingress parameters
| Key | Description | Value | | Key | Description | Value |
|--------------------------------|----------------------------------------------------------------------------------|---------------------| |--------------------------------|-------------------------------------------------------------------------------|---------------------|
| `ingress.enabled` | Enable ingress record generation for DTM | `false` | | `ingress.enabled` | Enable ingress record generation for DTM | `false` |
| `ingress.className` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `"nginx"` | | `ingress.className` | IngressClass that will be used to implement the Ingress (Kubernetes 1.18+) | `"nginx"` |
| `ingress.annotations` | To enable certificate auto generation, place here your cert-manager annotations. | `{}` | | `ingress.annotations` | To enable certificate auto generation, place here your cert-manager annotations. | `{}` |
| `ingress.hosts.host` | Default host for the ingress record. | `"your-domain.com"` | | `ingress.hosts.host` | Default host for the ingress record. | `"your-domain.com"` |
| `ingress.hosts.paths.path` | Default path for the ingress record | `"/"` | | `ingress.hosts.paths.path` | Default path for the ingress record | `"/"` |
| `ingress.hosts.paths.pathType` | Ingress path type | `"Prefix"` | | `ingress.hosts.paths.pathType` | Ingress path type | `"Prefix"` |
| `ingress.tls` | Enable TLS configuration for the host defined at ingress.hostname parameter | `[]` | | `ingress.tls` | Enable TLS configuration for the host defined at ingress.hostname parameter | `[]` |

2
client/dtmcli/dtmimp/types.go

@ -8,7 +8,7 @@ package dtmimp
import "database/sql" import "database/sql"
// DB inteface of dtmcli db // DB interface of dtmcli db
type DB interface { type DB interface {
Exec(query string, args ...interface{}) (sql.Result, error) Exec(query string, args ...interface{}) (sql.Result, error)
QueryRow(query string, args ...interface{}) *sql.Row QueryRow(query string, args ...interface{}) *sql.Row

6
client/workflow/workflow.go

@ -61,20 +61,20 @@ func ExecuteCtx(ctx context.Context, name string, gid string, data []byte) ([]by
} }
// Execute is the same as ExecuteCtx, but with context.Background // Execute is the same as ExecuteCtx, but with context.Background
// Deprecated: use ExecuteCtx instaead // Deprecated: use ExecuteCtx instead
func Execute(name string, gid string, data []byte) error { func Execute(name string, gid string, data []byte) error {
_, err := ExecuteCtx(context.Background(), name, gid, data) _, err := ExecuteCtx(context.Background(), name, gid, data)
return err return err
} }
// Execute2 is the same as Execute, but workflow func can return result // Execute2 is the same as Execute, but workflow func can return result
// Deprecated: use ExecuteCtx instaead // Deprecated: use ExecuteCtx instead
func Execute2(name string, gid string, data []byte) ([]byte, error) { func Execute2(name string, gid string, data []byte) ([]byte, error) {
return ExecuteCtx(context.Background(), name, gid, data) return ExecuteCtx(context.Background(), name, gid, data)
} }
// ExecuteByQS is like Execute, but name and gid will be obtained from qs // ExecuteByQS is like Execute, but name and gid will be obtained from qs
// Deprecated: use ExecuteCtx instaead // Deprecated: use ExecuteCtx instead
func ExecuteByQS(qs url.Values, body []byte) error { func ExecuteByQS(qs url.Values, body []byte) error {
name := qs.Get("op") name := qs.Get("op")
gid := qs.Get("gid") gid := qs.Get("gid")

Loading…
Cancel
Save