MCPcopy Create free account
hub / github.com/cel-expr/cel-go / IsTimestamp

Method IsTimestamp

policy/yaml.go:92–94  ·  view source on GitHub ↗

IsTimestamp returns true if the YAML node is a timestamp.

(node *yaml.Node)

Source from the content-addressed store, hash-verified

90
91// IsTimestamp returns true if the YAML node is a timestamp.
92func (YAMLHelper) IsTimestamp(node *yaml.Node) bool {
93 return isTypeTag(node, yamlTimestamp)
94}
95
96func isTypeTag(node *yaml.Node, wantTag yamlNodeType) bool {
97 if yt, found := yamlTypes[node.LongTag()]; found {

Callers 1

TestYAMLHelperFunction · 0.95

Calls 1

isTypeTagFunction · 0.85

Tested by 1

TestYAMLHelperFunction · 0.76