Documentation ¶
Overview ¶
Package dockerhub provides a client for interacting with Docker Hub
Index ¶
- Constants
- Variables
- func MarshalV1Config(rawCfg json.RawMessage) (json.RawMessage, error)
- func New(cred provifv1.OAuth2TokenCredential, cfg *minderv1.DockerHubProviderConfig) (*dockerHubImageLister, error)
- func NewDockerHubProviderClassManager(crypteng crypto.Engine, store db.Store) *providerClassManager
- func ParseV1Config(rawCfg json.RawMessage) (*minderv1.DockerHubProviderConfig, error)
Constants ¶
View Source
const DockerHub = "dockerhub"
DockerHub is the string that represents the DockerHub provider
Variables ¶
View Source
var AuthorizationFlows = []db.AuthorizationFlow{ db.AuthorizationFlowUserInput, }
AuthorizationFlows is the list of authorization flows that the DockerHub provider supports
View Source
var Implements = []db.ProviderType{ db.ProviderTypeImageLister, db.ProviderTypeOci, }
Implements is the list of provider types that the DockerHub provider implements
Functions ¶
func MarshalV1Config ¶
func MarshalV1Config(rawCfg json.RawMessage) (json.RawMessage, error)
MarshalV1Config marshals the DockerHubProviderConfig struct into a raw config
func New ¶
func New(cred provifv1.OAuth2TokenCredential, cfg *minderv1.DockerHubProviderConfig) (*dockerHubImageLister, error)
New creates a new Docker Hub client
func NewDockerHubProviderClassManager ¶
NewDockerHubProviderClassManager creates a new provider class manager for the dockerhub provider
func ParseV1Config ¶
func ParseV1Config(rawCfg json.RawMessage) (*minderv1.DockerHubProviderConfig, error)
ParseV1Config parses the raw config into a DockerHubProviderConfig struct
TODO: This should be moved to a common location
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.