MCPcopy Create free account
hub / github.com/docker/go-plugins-helpers / Request

Struct Request

secrets/api.go:15–26  ·  view source on GitHub ↗

Request is the plugin secret request

Source from the content-addressed store, hash-verified

13
14// Request is the plugin secret request
15type 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
29type Response struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected