Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
- Filipo Valsorda
- github - Cryptogopher. Go security lead.
- there are no high level differences
- we got rid of cli flags for extensions
- admins can still configure an instance using a single ocis.yaml
- or overwrite global values present in ocis.yaml with extension.yaml (i.e: proxy.yaml)
- formats supported are
- json
- yaml
- but decoders are easy to extend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mode: 0 | |
file: "" | |
ocisurl: "" | |
registry: "" | |
log: | |
level: info | |
pretty: false | |
color: false | |
file: "" | |
debug: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[0;33m' | |
NC='\033[0m' # No Color | |
ENV="" | |
BUILD="false" | |
RESTART="false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ | |
"traceID": "d2830a66661f988972e7346da6321b1f", | |
"spans": [ | |
{ | |
"traceID": "d2830a66661f988972e7346da6321b1f", | |
"spanID": "abf640a6157a8a35", | |
"flags": 1, | |
"operationName": "Stat", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type example struct { | |
a string | |
b string | |
} | |
// run me on https://play.golang.org/p/xxbFzUHBM6j |
The precedence for flag value sources is as follows (highest to lowest):
- Command line flag value from user
- Environment variable (if specified)
- Configuration file (if specified)
- Default defined on the flag
An issue arises in point 2, in the sense that configuration file refers to a single file containing the value for the env variable.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
func main() { | |
a := make([]int, 2, 4) | |
for i := 0; i < cap(a); i++ { | |
a = append(a, i) | |
} | |
} |
NewerOlder