GO-2024-2718 : Cosign malicious attachments can cause system-wide denial of service in github.com/sigstore/cosign
GO-2024-2719 : Cosign malicious artifacts can cause machine-wide DoS in github.com/sigstore/cosign
The highest tagged major version is
v2 .
Discover Packages
github.com/sigstore/cosign
third_party
VENDOR-LICENSE
github.com
hashicorp
hcl
hcl
token
package
Version:
v1.9.0
Opens a new window with list of versions in this module.
Published: Jun 3, 2022
License: Apache-2.0, MPL-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package token defines constants representing the lexical tokens for HCL
(HashiCorp Configuration Language)
Pos describes an arbitrary source position
including the file, line, and column location.
A Position is valid if the line number is > 0.
After reports whether the position p is after u.
Before reports whether the position p is before u.
IsValid returns true if the position is valid.
String returns a string in one of several forms:
file:line:column valid position with file name
line:column valid position without file name
file invalid position with file name
- invalid position without file name
Token defines a single HCL token which can be obtained via the Scanner
String returns the token's literal text. Note that this is only
applicable for certain token types, such as token.IDENT,
token.STRING, etc..
func (t Token ) Value() interface{}
Value returns the properly typed value for this token. The type of
the returned interface{} is guaranteed based on the Type field.
This can only be called for literal types. If it is called for any other
type, this will panic.
Type is the set of lexical tokens of the HCL (HashiCorp Configuration Language)
const (
ILLEGAL Type = iota
EOF
IDENT
NUMBER
FLOAT
BOOL
STRING
HEREDOC
LBRACK
LBRACE
COMMA
PERIOD
RBRACK
RBRACE
ASSIGN
ADD
SUB
)
IsIdentifier returns true for tokens corresponding to identifiers and basic
type literals; it returns false otherwise.
IsLiteral returns true for tokens corresponding to basic type literals; it
returns false otherwise.
IsOperator returns true for tokens corresponding to operators and
delimiters; it returns false otherwise.
String returns the string corresponding to the token tok.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.