Documentation
¶
Index ¶
Constants ¶
View Source
const OneMegabyte = 1024768
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
Transport is a custom transport for Docker API reverse proxy. It allows interception of requests and rewriting of responses.
func NewTransport ¶
func NewTransport(parameters *TransportParameters, httpTransport *http.Transport, gitService portainer.GitService) (*Transport, error)
NewTransport returns a pointer to a new Transport instance.
func (*Transport) ProxyDockerRequest ¶
ProxyDockerRequest intercepts a Docker API request and apply logic based on the requested operation.
type TransportParameters ¶
type TransportParameters struct { Endpoint *portainer.Endpoint DataStore dataservices.DataStore SignatureService portainer.DigitalSignatureService ReverseTunnelService portainer.ReverseTunnelService DockerClientFactory *docker.ClientFactory }
TransportParameters is used to create a new Transport
Click to show internal directories.
Click to hide internal directories.