code
stringlengths 12
335k
| docstring
stringlengths 20
20.8k
| func_name
stringlengths 1
105
| language
stringclasses 1
value | repo
stringclasses 498
values | path
stringlengths 5
172
| url
stringlengths 43
235
| license
stringclasses 4
values |
---|---|---|---|---|---|---|---|
func (p *Profile) ShowFrom(showFrom *regexp.Regexp) (matched bool) {
if showFrom == nil {
return false
}
// showFromLocs stores location IDs that matched ShowFrom.
showFromLocs := make(map[uint64]bool)
// Apply to locations.
for _, loc := range p.Location {
if filterShowFromLocation(loc, showFrom) {
showFromLocs[loc.ID] = true
matched = true
}
}
// For all samples, strip locations after the highest matching one.
s := make([]*Sample, 0, len(p.Sample))
for _, sample := range p.Sample {
for i := len(sample.Location) - 1; i >= 0; i-- {
if showFromLocs[sample.Location[i].ID] {
sample.Location = sample.Location[:i+1]
s = append(s, sample)
break
}
}
}
p.Sample = s
return matched
} | ShowFrom drops all stack frames above the highest matching frame and returns
whether a match was found. If showFrom is nil it returns false and does not
modify the profile.
Example: consider a sample with frames [A, B, C, B], where A is the root.
ShowFrom(nil) returns false and has frames [A, B, C, B].
ShowFrom(A) returns true and has frames [A, B, C, B].
ShowFrom(B) returns true and has frames [B, C, B].
ShowFrom(C) returns true and has frames [C, B].
ShowFrom(D) returns false and drops the sample because no frames remain. | ShowFrom | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/pprof/profile/filter.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/pprof/profile/filter.go | Apache-2.0 |
func filterShowFromLocation(loc *Location, showFrom *regexp.Regexp) bool {
if m := loc.Mapping; m != nil && showFrom.MatchString(m.File) {
return true
}
if i := loc.lastMatchedLineIndex(showFrom); i >= 0 {
loc.Line = loc.Line[:i+1]
return true
}
return false
} | filterShowFromLocation tests a showFrom regex against a location, removes
lines after the last match and returns whether a match was found. If the
mapping is matched, then all lines are kept. | filterShowFromLocation | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/pprof/profile/filter.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/pprof/profile/filter.go | Apache-2.0 |
func (loc *Location) lastMatchedLineIndex(re *regexp.Regexp) int {
for i := len(loc.Line) - 1; i >= 0; i-- {
if fn := loc.Line[i].Function; fn != nil {
if re.MatchString(fn.Name) || re.MatchString(fn.Filename) {
return i
}
}
}
return -1
} | lastMatchedLineIndex returns the index of the last line that matches a regex,
or -1 if no match is found. | lastMatchedLineIndex | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/pprof/profile/filter.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/pprof/profile/filter.go | Apache-2.0 |
func (p *Profile) FilterTagsByName(show, hide *regexp.Regexp) (sm, hm bool) {
matchRemove := func(name string) bool {
matchShow := show == nil || show.MatchString(name)
matchHide := hide != nil && hide.MatchString(name)
if matchShow {
sm = true
}
if matchHide {
hm = true
}
return !matchShow || matchHide
}
for _, s := range p.Sample {
for lab := range s.Label {
if matchRemove(lab) {
delete(s.Label, lab)
}
}
for lab := range s.NumLabel {
if matchRemove(lab) {
delete(s.NumLabel, lab)
}
}
}
return
} | FilterTagsByName filters the tags in a profile and only keeps
tags that match show and not hide. | FilterTagsByName | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/pprof/profile/filter.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/pprof/profile/filter.go | Apache-2.0 |
func (loc *Location) matchesName(re *regexp.Regexp) bool {
for _, ln := range loc.Line {
if fn := ln.Function; fn != nil {
if re.MatchString(fn.Name) || re.MatchString(fn.Filename) {
return true
}
}
}
if m := loc.Mapping; m != nil && re.MatchString(m.File) {
return true
}
return false
} | matchesName returns whether the location matches the regular
expression. It checks any available function names, file names, and
mapping object filename. | matchesName | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/pprof/profile/filter.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/pprof/profile/filter.go | Apache-2.0 |
func (loc *Location) unmatchedLines(re *regexp.Regexp) []Line {
if m := loc.Mapping; m != nil && re.MatchString(m.File) {
return nil
}
var lines []Line
for _, ln := range loc.Line {
if fn := ln.Function; fn != nil {
if re.MatchString(fn.Name) || re.MatchString(fn.Filename) {
continue
}
}
lines = append(lines, ln)
}
return lines
} | unmatchedLines returns the lines in the location that do not match
the regular expression. | unmatchedLines | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/pprof/profile/filter.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/pprof/profile/filter.go | Apache-2.0 |
func (loc *Location) matchedLines(re *regexp.Regexp) []Line {
if m := loc.Mapping; m != nil && re.MatchString(m.File) {
return loc.Line
}
var lines []Line
for _, ln := range loc.Line {
if fn := ln.Function; fn != nil {
if !re.MatchString(fn.Name) && !re.MatchString(fn.Filename) {
continue
}
}
lines = append(lines, ln)
}
return lines
} | matchedLines returns the lines in the location that match
the regular expression. | matchedLines | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/pprof/profile/filter.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/pprof/profile/filter.go | Apache-2.0 |
func focusedAndNotIgnored(locs []*Location, m map[uint64]bool) bool {
var f bool
for _, loc := range locs {
if focus, focusOrIgnore := m[loc.ID]; focusOrIgnore {
if focus {
// Found focused location. Must keep searching in case there
// is an ignored one as well.
f = true
} else {
// Found ignored location. Can return false right away.
return false
}
}
}
return f
} | focusedAndNotIgnored looks up a slice of ids against a map of
focused/ignored locations. The map only contains locations that are
explicitly focused or ignored. Returns whether there is at least
one focused location but no ignored locations. | focusedAndNotIgnored | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/pprof/profile/filter.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/pprof/profile/filter.go | Apache-2.0 |
func (p *Profile) FilterSamplesByTag(focus, ignore TagMatch) (fm, im bool) {
samples := make([]*Sample, 0, len(p.Sample))
for _, s := range p.Sample {
focused, ignored := true, false
if focus != nil {
focused = focus(s)
}
if ignore != nil {
ignored = ignore(s)
}
fm = fm || focused
im = im || ignored
if focused && !ignored {
samples = append(samples, s)
}
}
p.Sample = samples
return
} | FilterSamplesByTag removes all samples from the profile, except
those that match focus and do not match the ignore regular
expression. | FilterSamplesByTag | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/pprof/profile/filter.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/pprof/profile/filter.go | Apache-2.0 |
func EnableFileCache() {
fileCacheMutex.Lock()
defer fileCacheMutex.Unlock()
fileCacheEnable = true
} | EnableFileCache turns on file caching. | EnableFileCache | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func EnableInfoCache() {
infoCacheMutex.Lock()
defer infoCacheMutex.Unlock()
infoCacheEnable = true
} | EnableInfoCache turns on parsed info caching. | EnableInfoCache | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func DisableFileCache() {
fileCacheMutex.Lock()
defer fileCacheMutex.Unlock()
fileCacheEnable = false
} | DisableFileCache turns off file caching. | DisableFileCache | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func DisableInfoCache() {
infoCacheMutex.Lock()
defer infoCacheMutex.Unlock()
infoCacheEnable = false
} | DisableInfoCache turns off parsed info caching. | DisableInfoCache | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func RemoveFromFileCache(fileurl string) {
fileCacheMutex.Lock()
defer fileCacheMutex.Unlock()
if !fileCacheEnable {
return
}
initializeFileCache()
delete(fileCache, fileurl)
} | RemoveFromFileCache removes an entry from the file cache. | RemoveFromFileCache | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func RemoveFromInfoCache(filename string) {
infoCacheMutex.Lock()
defer infoCacheMutex.Unlock()
if !infoCacheEnable {
return
}
initializeInfoCache()
delete(infoCache, filename)
} | RemoveFromInfoCache removes an entry from the info cache. | RemoveFromInfoCache | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func GetInfoCache() map[string]*yaml.Node {
infoCacheMutex.Lock()
defer infoCacheMutex.Unlock()
if infoCache == nil {
initializeInfoCache()
}
return infoCache
} | GetInfoCache returns the info cache map. | GetInfoCache | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func ClearFileCache() {
fileCacheMutex.Lock()
defer fileCacheMutex.Unlock()
fileCache = make(map[string][]byte, 0)
} | ClearFileCache clears the file cache. | ClearFileCache | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func ClearInfoCache() {
infoCacheMutex.Lock()
defer infoCacheMutex.Unlock()
infoCache = make(map[string]*yaml.Node)
} | ClearInfoCache clears the info cache. | ClearInfoCache | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func ClearCaches() {
ClearFileCache()
ClearInfoCache()
} | ClearCaches clears all caches. | ClearCaches | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func FetchFile(fileurl string) ([]byte, error) {
fileCacheMutex.Lock()
defer fileCacheMutex.Unlock()
return fetchFile(fileurl)
} | FetchFile gets a specified file from the local filesystem or a remote location. | FetchFile | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func ReadBytesForFile(filename string) ([]byte, error) {
fileCacheMutex.Lock()
defer fileCacheMutex.Unlock()
return readBytesForFile(filename)
} | ReadBytesForFile reads the bytes of a file. | ReadBytesForFile | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func ReadInfoFromBytes(filename string, bytes []byte) (*yaml.Node, error) {
infoCacheMutex.Lock()
defer infoCacheMutex.Unlock()
return readInfoFromBytes(filename, bytes)
} | ReadInfoFromBytes unmarshals a file as a *yaml.Node. | ReadInfoFromBytes | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func ReadInfoForRef(basefile string, ref string) (*yaml.Node, error) {
fileCacheMutex.Lock()
defer fileCacheMutex.Unlock()
infoCacheMutex.Lock()
defer infoCacheMutex.Unlock()
initializeInfoCache()
if infoCacheEnable {
info, ok := infoCache[ref]
if ok {
if verboseReader {
log.Printf("Cache hit for ref %s#%s", basefile, ref)
}
return info, nil
}
if verboseReader {
log.Printf("Reading info for ref %s#%s", basefile, ref)
}
}
basedir, _ := filepath.Split(basefile)
parts := strings.Split(ref, "#")
var filename string
if parts[0] != "" {
filename = parts[0]
if _, err := url.ParseRequestURI(parts[0]); err != nil {
// It is not an URL, so the file is local
filename = basedir + parts[0]
}
} else {
filename = basefile
}
bytes, err := readBytesForFile(filename)
if err != nil {
return nil, err
}
info, err := readInfoFromBytes(filename, bytes)
if info != nil && info.Kind == yaml.DocumentNode {
info = info.Content[0]
}
if err != nil {
log.Printf("File error: %v\n", err)
} else {
if info == nil {
return nil, NewError(nil, fmt.Sprintf("could not resolve %s", ref))
}
if len(parts) > 1 {
path := strings.Split(parts[1], "/")
for i, key := range path {
if i > 0 {
m := info
if true {
found := false
for i := 0; i < len(m.Content); i += 2 {
if m.Content[i].Value == key {
info = m.Content[i+1]
found = true
}
}
if !found {
infoCache[ref] = nil
return nil, NewError(nil, fmt.Sprintf("could not resolve %s", ref))
}
}
}
}
}
}
if infoCacheEnable {
infoCache[ref] = info
}
return info, nil
} | ReadInfoForRef reads a file and return the fragment needed to resolve a $ref. | ReadInfoForRef | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/reader.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/reader.go | Apache-2.0 |
func CallExtension(context *Context, in *yaml.Node, extensionName string) (handled bool, response *anypb.Any, err error) {
if context == nil || context.ExtensionHandlers == nil {
return false, nil, nil
}
handled = false
for _, handler := range *(context.ExtensionHandlers) {
response, err = handler.handle(in, extensionName)
if response == nil {
continue
} else {
handled = true
break
}
}
return handled, response, err
} | CallExtension calls a binary extension handler. | CallExtension | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/extensions.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/extensions.go | Apache-2.0 |
func NewContextWithExtensions(name string, node *yaml.Node, parent *Context, extensionHandlers *[]ExtensionHandler) *Context {
return &Context{Name: name, Node: node, Parent: parent, ExtensionHandlers: extensionHandlers}
} | NewContextWithExtensions returns a new object representing the compiler state | NewContextWithExtensions | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/context.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/context.go | Apache-2.0 |
func NewContext(name string, node *yaml.Node, parent *Context) *Context {
if parent != nil {
return &Context{Name: name, Node: node, Parent: parent, ExtensionHandlers: parent.ExtensionHandlers}
}
return &Context{Name: name, Parent: parent, ExtensionHandlers: nil}
} | NewContext returns a new object representing the compiler state | NewContext | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/context.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/context.go | Apache-2.0 |
func (context *Context) Description() string {
name := context.Name
if context.Parent != nil {
name = context.Parent.Description() + "." + name
}
return name
} | Description returns a text description of the compiler state | Description | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/context.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/context.go | Apache-2.0 |
func NewError(context *Context, message string) *Error {
return &Error{Context: context, Message: message}
} | NewError creates an Error. | NewError | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/error.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/error.go | Apache-2.0 |
func (err *Error) Error() string {
if err.Context == nil {
return err.Message
}
return err.locationDescription() + " " + err.Message
} | Error returns the string value of an Error. | Error | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/error.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/error.go | Apache-2.0 |
func NewErrorGroupOrNil(errors []error) error {
if len(errors) == 0 {
return nil
} else if len(errors) == 1 {
return errors[0]
} else {
return &ErrorGroup{Errors: errors}
}
} | NewErrorGroupOrNil returns a new ErrorGroup for a slice of errors or nil if the slice is empty. | NewErrorGroupOrNil | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/error.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/error.go | Apache-2.0 |
func UnpackMap(in *yaml.Node) (*yaml.Node, bool) {
if in == nil {
return nil, false
}
return in, true
} | UnpackMap gets a *yaml.Node if possible. | UnpackMap | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func SortedKeysForMap(m *yaml.Node) []string {
keys := make([]string, 0)
if m.Kind == yaml.MappingNode {
for i := 0; i < len(m.Content); i += 2 {
keys = append(keys, m.Content[i].Value)
}
}
sort.Strings(keys)
return keys
} | SortedKeysForMap returns the sorted keys of a yamlv2.MapSlice. | SortedKeysForMap | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func MapHasKey(m *yaml.Node, key string) bool {
if m == nil {
return false
}
if m.Kind == yaml.MappingNode {
for i := 0; i < len(m.Content); i += 2 {
itemKey := m.Content[i].Value
if key == itemKey {
return true
}
}
}
return false
} | MapHasKey returns true if a yamlv2.MapSlice contains a specified key. | MapHasKey | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func MapValueForKey(m *yaml.Node, key string) *yaml.Node {
if m == nil {
return nil
}
if m.Kind == yaml.MappingNode {
for i := 0; i < len(m.Content); i += 2 {
itemKey := m.Content[i].Value
if key == itemKey {
return m.Content[i+1]
}
}
}
return nil
} | MapValueForKey gets the value of a map value for a specified key. | MapValueForKey | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func ConvertInterfaceArrayToStringArray(interfaceArray []interface{}) []string {
stringArray := make([]string, 0)
for _, item := range interfaceArray {
v, ok := item.(string)
if ok {
stringArray = append(stringArray, v)
}
}
return stringArray
} | ConvertInterfaceArrayToStringArray converts an array of interfaces to an array of strings, if possible. | ConvertInterfaceArrayToStringArray | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func SequenceNodeForNode(node *yaml.Node) (*yaml.Node, bool) {
if node.Kind != yaml.SequenceNode {
return nil, false
}
return node, true
} | SequenceNodeForNode returns a node if it is a SequenceNode. | SequenceNodeForNode | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func BoolForScalarNode(node *yaml.Node) (bool, bool) {
if node == nil {
return false, false
}
if node.Kind == yaml.DocumentNode {
return BoolForScalarNode(node.Content[0])
}
if node.Kind != yaml.ScalarNode {
return false, false
}
if node.Tag != "!!bool" {
return false, false
}
v, err := strconv.ParseBool(node.Value)
if err != nil {
return false, false
}
return v, true
} | BoolForScalarNode returns the bool value of a node. | BoolForScalarNode | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func IntForScalarNode(node *yaml.Node) (int64, bool) {
if node == nil {
return 0, false
}
if node.Kind == yaml.DocumentNode {
return IntForScalarNode(node.Content[0])
}
if node.Kind != yaml.ScalarNode {
return 0, false
}
if node.Tag != "!!int" {
return 0, false
}
v, err := strconv.ParseInt(node.Value, 10, 64)
if err != nil {
return 0, false
}
return v, true
} | IntForScalarNode returns the integer value of a node. | IntForScalarNode | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func FloatForScalarNode(node *yaml.Node) (float64, bool) {
if node == nil {
return 0.0, false
}
if node.Kind == yaml.DocumentNode {
return FloatForScalarNode(node.Content[0])
}
if node.Kind != yaml.ScalarNode {
return 0.0, false
}
if (node.Tag != "!!int") && (node.Tag != "!!float") {
return 0.0, false
}
v, err := strconv.ParseFloat(node.Value, 64)
if err != nil {
return 0.0, false
}
return v, true
} | FloatForScalarNode returns the float value of a node. | FloatForScalarNode | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func StringForScalarNode(node *yaml.Node) (string, bool) {
if node == nil {
return "", false
}
if node.Kind == yaml.DocumentNode {
return StringForScalarNode(node.Content[0])
}
switch node.Kind {
case yaml.ScalarNode:
switch node.Tag {
case "!!int":
return node.Value, true
case "!!str":
return node.Value, true
case "!!timestamp":
return node.Value, true
case "!!null":
return "", true
default:
return "", false
}
default:
return "", false
}
} | StringForScalarNode returns the string value of a node. | StringForScalarNode | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func StringArrayForSequenceNode(node *yaml.Node) []string {
stringArray := make([]string, 0)
for _, item := range node.Content {
v, ok := StringForScalarNode(item)
if ok {
stringArray = append(stringArray, v)
}
}
return stringArray
} | StringArrayForSequenceNode converts a sequence node to an array of strings, if possible. | StringArrayForSequenceNode | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func MissingKeysInMap(m *yaml.Node, requiredKeys []string) []string {
missingKeys := make([]string, 0)
for _, k := range requiredKeys {
if !MapHasKey(m, k) {
missingKeys = append(missingKeys, k)
}
}
return missingKeys
} | MissingKeysInMap identifies which keys from a list of required keys are not in a map. | MissingKeysInMap | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func InvalidKeysInMap(m *yaml.Node, allowedKeys []string, allowedPatterns []*regexp.Regexp) []string {
invalidKeys := make([]string, 0)
if m == nil || m.Kind != yaml.MappingNode {
return invalidKeys
}
for i := 0; i < len(m.Content); i += 2 {
key := m.Content[i].Value
found := false
// does the key match an allowed key?
for _, allowedKey := range allowedKeys {
if key == allowedKey {
found = true
break
}
}
if !found {
// does the key match an allowed pattern?
for _, allowedPattern := range allowedPatterns {
if allowedPattern.MatchString(key) {
found = true
break
}
}
if !found {
invalidKeys = append(invalidKeys, key)
}
}
}
return invalidKeys
} | InvalidKeysInMap returns keys in a map that don't match a list of allowed keys and patterns. | InvalidKeysInMap | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func NewNullNode() *yaml.Node {
node := &yaml.Node{
Kind: yaml.ScalarNode,
Tag: "!!null",
}
return node
} | NewNullNode creates a new Null node. | NewNullNode | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func NewMappingNode() *yaml.Node {
return &yaml.Node{
Kind: yaml.MappingNode,
Content: make([]*yaml.Node, 0),
}
} | NewMappingNode creates a new Mapping node. | NewMappingNode | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func NewSequenceNode() *yaml.Node {
node := &yaml.Node{
Kind: yaml.SequenceNode,
Content: make([]*yaml.Node, 0),
}
return node
} | NewSequenceNode creates a new Sequence node. | NewSequenceNode | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func NewScalarNodeForString(s string) *yaml.Node {
return &yaml.Node{
Kind: yaml.ScalarNode,
Tag: "!!str",
Value: s,
}
} | NewScalarNodeForString creates a new node to hold a string. | NewScalarNodeForString | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func NewSequenceNodeForStringArray(strings []string) *yaml.Node {
node := &yaml.Node{
Kind: yaml.SequenceNode,
Content: make([]*yaml.Node, 0),
}
for _, s := range strings {
node.Content = append(node.Content, NewScalarNodeForString(s))
}
return node
} | NewSequenceNodeForStringArray creates a new node to hold an array of strings. | NewSequenceNodeForStringArray | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func NewScalarNodeForBool(b bool) *yaml.Node {
return &yaml.Node{
Kind: yaml.ScalarNode,
Tag: "!!bool",
Value: fmt.Sprintf("%t", b),
}
} | NewScalarNodeForBool creates a new node to hold a bool. | NewScalarNodeForBool | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func NewScalarNodeForFloat(f float64) *yaml.Node {
return &yaml.Node{
Kind: yaml.ScalarNode,
Tag: "!!float",
Value: fmt.Sprintf("%g", f),
}
} | NewScalarNodeForFloat creates a new node to hold a float. | NewScalarNodeForFloat | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func NewScalarNodeForInt(i int64) *yaml.Node {
return &yaml.Node{
Kind: yaml.ScalarNode,
Tag: "!!int",
Value: fmt.Sprintf("%d", i),
}
} | NewScalarNodeForInt creates a new node to hold an integer. | NewScalarNodeForInt | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func PluralProperties(count int) string {
if count == 1 {
return "property"
}
return "properties"
} | PluralProperties returns the string "properties" pluralized. | PluralProperties | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func StringArrayContainsValue(array []string, value string) bool {
for _, item := range array {
if item == value {
return true
}
}
return false
} | StringArrayContainsValue returns true if a string array contains a specified value. | StringArrayContainsValue | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func StringArrayContainsValues(array []string, values []string) bool {
for _, value := range values {
if !StringArrayContainsValue(array, value) {
return false
}
}
return true
} | StringArrayContainsValues returns true if a string array contains all of a list of specified values. | StringArrayContainsValues | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func StringValue(item interface{}) (value string, ok bool) {
value, ok = item.(string)
if ok {
return value, ok
}
intValue, ok := item.(int)
if ok {
return strconv.Itoa(intValue), true
}
return "", false
} | StringValue returns the string value of an item. | StringValue | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func Description(item interface{}) string {
value, ok := item.(*yaml.Node)
if ok {
return jsonschema.Render(value)
}
return fmt.Sprintf("%+v", item)
} | Description returns a human-readable represention of an item. | Description | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func Display(node *yaml.Node) string {
switch node.Kind {
case yaml.ScalarNode:
switch node.Tag {
case "!!str":
return fmt.Sprintf("%s (string)", node.Value)
}
}
return fmt.Sprintf("%+v (%T)", node, node)
} | Display returns a description of a node for use in error messages. | Display | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func Marshal(in *yaml.Node) []byte {
clearStyle(in)
//bytes, _ := yaml.Marshal(&yaml.Node{Kind: yaml.DocumentNode, Content: []*yaml.Node{in}})
bytes, _ := yaml.Marshal(in)
return bytes
} | Marshal creates a yaml version of a structure in our preferred style | Marshal | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/compiler/helpers.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/compiler/helpers.go | Apache-2.0 |
func (*AdditionalPropertiesItem) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{0}
} | Deprecated: Use AdditionalPropertiesItem.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Any) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{1}
} | Deprecated: Use Any.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*AnyOrExpression) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{2}
} | Deprecated: Use AnyOrExpression.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Callback) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{3}
} | Deprecated: Use Callback.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*CallbackOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{4}
} | Deprecated: Use CallbackOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*CallbacksOrReferences) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{5}
} | Deprecated: Use CallbacksOrReferences.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Components) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{6}
} | Deprecated: Use Components.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Contact) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{7}
} | Deprecated: Use Contact.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*DefaultType) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{8}
} | Deprecated: Use DefaultType.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Discriminator) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{9}
} | Deprecated: Use Discriminator.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Document) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{10}
} | Deprecated: Use Document.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Encoding) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{11}
} | Deprecated: Use Encoding.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Encodings) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{12}
} | Deprecated: Use Encodings.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Example) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{13}
} | Deprecated: Use Example.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*ExampleOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{14}
} | Deprecated: Use ExampleOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*ExamplesOrReferences) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{15}
} | Deprecated: Use ExamplesOrReferences.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Expression) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{16}
} | Deprecated: Use Expression.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*ExternalDocs) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{17}
} | Deprecated: Use ExternalDocs.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Header) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{18}
} | Deprecated: Use Header.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*HeaderOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{19}
} | Deprecated: Use HeaderOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*HeadersOrReferences) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{20}
} | Deprecated: Use HeadersOrReferences.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Info) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{21}
} | Deprecated: Use Info.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*ItemsItem) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{22}
} | Deprecated: Use ItemsItem.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*License) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{23}
} | Deprecated: Use License.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*Link) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{24}
} | Deprecated: Use Link.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*LinkOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{25}
} | Deprecated: Use LinkOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*LinksOrReferences) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{26}
} | Deprecated: Use LinksOrReferences.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*MediaType) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{27}
} | Deprecated: Use MediaType.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*MediaTypes) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{28}
} | Deprecated: Use MediaTypes.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedAny) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{29}
} | Deprecated: Use NamedAny.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedCallbackOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{30}
} | Deprecated: Use NamedCallbackOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedEncoding) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{31}
} | Deprecated: Use NamedEncoding.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedExampleOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{32}
} | Deprecated: Use NamedExampleOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedHeaderOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{33}
} | Deprecated: Use NamedHeaderOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedLinkOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{34}
} | Deprecated: Use NamedLinkOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedMediaType) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{35}
} | Deprecated: Use NamedMediaType.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedParameterOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{36}
} | Deprecated: Use NamedParameterOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedPathItem) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{37}
} | Deprecated: Use NamedPathItem.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedRequestBodyOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{38}
} | Deprecated: Use NamedRequestBodyOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedResponseOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{39}
} | Deprecated: Use NamedResponseOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedSchemaOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{40}
} | Deprecated: Use NamedSchemaOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
func (*NamedSecuritySchemeOrReference) Descriptor() ([]byte, []int) {
return file_openapiv3_OpenAPIv3_proto_rawDescGZIP(), []int{41}
} | Deprecated: Use NamedSecuritySchemeOrReference.ProtoReflect.Descriptor instead. | Descriptor | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.go | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.