Request is the plugin secret request
| 13 | |
| 14 | // Request is the plugin secret request |
| 15 | type Request struct { |
| 16 | SecretName string `json:",omitempty"` // SecretName is the name of the secret to request from the plugin |
| 17 | SecretLabels map[string]string `json:",omitempty"` // SecretLabels capture environment names and other metadata pertaining to the secret |
| 18 | ServiceHostname string `json:",omitempty"` // ServiceHostname is the hostname of the service, can be used for x509 certificate |
| 19 | ServiceName string `json:",omitempty"` // ServiceName is the name of the service that requested the secret |
| 20 | ServiceID string `json:",omitempty"` // ServiceID is the name of the service that requested the secret |
| 21 | ServiceLabels map[string]string `json:",omitempty"` // ServiceLabels capture environment names and other metadata pertaining to the service |
| 22 | TaskID string `json:",omitempty"` // TaskID is the ID of the task that the secret is assigned to |
| 23 | TaskName string `json:",omitempty"` // TaskName is the name of the task that the secret is assigned to |
| 24 | TaskImage string `json:",omitempty"` // TaskName is the image of the task that the secret is assigned to |
| 25 | ServiceEndpointSpec *EndpointSpec `json:",omitempty"` // ServiceEndpointSpec holds the specification for endpoints |
| 26 | } |
| 27 | |
| 28 | // Response contains the plugin secret value |
| 29 | type Response struct { |
nothing calls this directly
no outgoing calls
no test coverage detected