MCPcopy Index your code
hub / github.com/coder/coder / String

Method String

codersdk/allowlist.go:34–36  ·  view source on GitHub ↗

String returns the canonical string representation " : " with "*" wildcards.

()

Source from the content-addressed store, hash-verified

32
33// String returns the canonical string representation "<type>:<id>" with "*" wildcards.
34func (t APIAllowListTarget) String() string {
35 return string(t.Type) + ":" + t.ID
36}
37
38// MarshalJSON encodes as a JSON string: "<type>:<id>".
39func (t APIAllowListTarget) MarshalJSON() ([]byte, error) {

Callers 3

MarshalJSONMethod · 0.95
MarshalTextMethod · 0.95
AllowResourceTargetFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected