Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublicKeyCreate ¶
type PublicKeyCreate struct { Data []byte `json:"data"` Filter PublicKeyFilter `json:"filter"` Name string `json:"name"` Username string `json:"username"` TenantID string `json:"tenant_id"` Fingerprint string `json:"fingerprint"` }
PublicKeyCreate is the structure to represent the request data for create public key endpoint.
type PublicKeyFilter ¶
type PublicKeyFilter struct { Hostname string `json:"hostname,omitempty" validate:"required_without=Tags,excluded_with=Tags,regexp"` // FIXME: add validation for tags when it has at least one item. // // If used `min=1` to do that validation, when tags is empty, its zero value, and only hostname is provided, // it throws a error even with `required_without` and `excluded_with`. Tags []string `` /* 142-byte string literal not displayed */ }
Click to show internal directories.
Click to hide internal directories.