{"modulePath":"code.cloudfoundry.org/cli-sapi","version":"v6.51.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package types\n\n## Constants\n\n```go\nconst JsonNull = \"null\"\n```\n\n## Types\n\n```go\ntype FilteredString struct {\n\tIsSet bool\n\tValue string\n}\n```\nFilteredString is a wrapper around string values that can be null/default or an actual value.  Use IsSet to check if the value is provided, instead of checking against the empty string.\n\n```go\nfunc NewFilteredString(val string) *FilteredString\n```\n\n```go\nfunc (n FilteredString) IsDefault() bool\n```\n\n```go\nfunc (n FilteredString) MarshalJSON() ([]byte, error)\n```\nMarshalJSON marshals the value field if it's not empty, otherwise returns an null.\n\n```go\nfunc (n *FilteredString) ParseValue(val string)\n```\nParseValue is used to parse a user provided flag argument.\n\n```go\nfunc (n FilteredString) String() string\n```\n\n```go\nfunc (n *FilteredString) UnmarshalJSON(rawJSON []byte) error\n```\n\n```go\ntype FilteredStrings []FilteredString\n```\n\n```go\nfunc (n FilteredStrings) String() string\n```\n\n```go\ntype NullBool struct {\n\tIsSet bool\n\tValue bool\n}\n```\nNullBool is a wrapper around bool values that can be null or an bool. Use IsSet to check if the value is provided, instead of checking against false.\n\n```go\nfunc (n NullBool) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (n *NullBool) ParseBoolValue(val *bool)\n```\nParseBoolValue is used to parse a user provided \\*bool argument.\n\n```go\nfunc (n *NullBool) ParseStringValue(val string) error\n```\nParseStringValue is used to parse a user provided flag argument.\n\n```go\nfunc (n *NullBool) UnmarshalJSON(rawJSON []byte) error\n```\n\n```go\ntype NullByteSizeInMb struct {\n\tIsSet bool\n\n\t// Value is a size in MB\n\tValue uint64\n}\n```\nNullByteSizeInMb represents size in a byte format in megabytes.\n\n```go\nfunc (b *NullByteSizeInMb) ParseStringValue(value string) error\n```\n\n```go\nfunc (b *NullByteSizeInMb) ParseUint64Value(val *uint64)\n```\nParseUint64Value is used to parse a user provided \\*uint64 argument.\n\n```go\nfunc (b NullByteSizeInMb) String() string\n```\n\n```go\nfunc (b *NullByteSizeInMb) UnmarshalJSON(rawJSON []byte) error\n```\n\n```go\ntype NullInt struct {\n\tIsSet bool\n\tValue int\n}\n```\nNullInt is a wrapper around integer values that can be null or an integer. Use IsSet to check if the value is provided, instead of checking against 0.\n\n```go\nfunc (n *NullInt) IsValidValue(val string) error\n```\nIsValidValue returns an error if the input value is not an integer.\n\n```go\nfunc (n NullInt) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (n *NullInt) ParseIntValue(val *int)\n```\nParseIntValue is used to parse a user provided \\*int argument.\n\n```go\nfunc (n *NullInt) ParseStringValue(val string) error\n```\nParseStringValue is used to parse a user provided flag argument.\n\n```go\nfunc (n *NullInt) UnmarshalFlag(val string) error\n```\n\n```go\nfunc (n *NullInt) UnmarshalJSON(rawJSON []byte) error\n```\n\n```go\ntype NullString struct {\n\tValue string\n\tIsSet bool\n}\n```\n\n```go\nfunc NewNullString(optionalValue ...string) NullString\n```\n\n```go\nfunc (n NullString) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (n *NullString) UnmarshalJSON(rawJSON []byte) error\n```\n\n```go\ntype NullUint64 struct {\n\tIsSet bool\n\tValue uint64\n}\n```\nNullUint64 is a wrapper around uint64 values that can be null or an unint64. Use IsSet to check if the value is provided, instead of checking against 0.\n\n```go\nfunc (n *NullUint64) ParseStringValue(val string) error\n```\nParseStringValue is used to parse a user provided flag argument.\n\n```go\nfunc (n *NullUint64) UnmarshalJSON(rawJSON []byte) error\n```\n\n","path":"code.cloudfoundry.org/cli-sapi/types","name":"types","synopsis":"","isRedistributable":true}
