Documentation
¶
Index ¶
- Constants
- type AccessTokenRequest
- type AccessTokenResponse
- type Client
- type Configuration
- type DockerHub
- func (d *DockerHub) Actions() []core.Action
- func (d *DockerHub) Cleanup(ctx core.IntegrationCleanupContext) error
- func (d *DockerHub) Configuration() []configuration.Field
- func (d *DockerHub) Description() string
- func (d *DockerHub) HandleHook(ctx core.IntegrationHookContext) error
- func (d *DockerHub) HandleRequest(ctx core.HTTPRequestContext)
- func (d *DockerHub) Hooks() []core.Hook
- func (d *DockerHub) Icon() string
- func (d *DockerHub) Instructions() string
- func (d *DockerHub) Label() string
- func (d *DockerHub) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- func (d *DockerHub) Name() string
- func (d *DockerHub) Sync(ctx core.SyncContext) error
- func (d *DockerHub) Triggers() []core.Trigger
- type GetImageTag
- func (c *GetImageTag) Cancel(ctx core.ExecutionContext) error
- func (c *GetImageTag) Cleanup(ctx core.SetupContext) error
- func (c *GetImageTag) Color() string
- func (c *GetImageTag) Configuration() []configuration.Field
- func (c *GetImageTag) Description() string
- func (c *GetImageTag) Documentation() string
- func (c *GetImageTag) ExampleOutput() map[string]any
- func (c *GetImageTag) Execute(ctx core.ExecutionContext) error
- func (c *GetImageTag) HandleHook(ctx core.ActionHookContext) error
- func (c *GetImageTag) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (c *GetImageTag) Hooks() []core.Hook
- func (c *GetImageTag) Icon() string
- func (c *GetImageTag) Label() string
- func (c *GetImageTag) Name() string
- func (c *GetImageTag) OutputChannels(configuration any) []core.OutputChannel
- func (c *GetImageTag) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *GetImageTag) Setup(ctx core.SetupContext) error
- type GetImageTagConfiguration
- type Image
- type ImagePushData
- type ImagePushPayload
- type ImagePushRepository
- type ImageSet
- type ListRepositoriesResponse
- type OnImagePush
- func (p *OnImagePush) Cleanup(ctx core.TriggerContext) error
- func (p *OnImagePush) Color() string
- func (p *OnImagePush) Configuration() []configuration.Field
- func (p *OnImagePush) Description() string
- func (p *OnImagePush) Documentation() string
- func (p *OnImagePush) ExampleData() map[string]any
- func (p *OnImagePush) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)
- func (p *OnImagePush) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (p *OnImagePush) Hooks() []core.Hook
- func (p *OnImagePush) Icon() string
- func (p *OnImagePush) Label() string
- func (p *OnImagePush) Name() string
- func (p *OnImagePush) Setup(ctx core.TriggerContext) error
- type OnImagePushConfiguration
- type OnImagePushMetadata
- type Repository
- type RepositoryMetadata
- type Tag
Constants ¶
View Source
const (
ResourceTypeRepository = "dockerhub.repository"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenRequest ¶
type AccessTokenResponse ¶
type AccessTokenResponse struct {
AccessToken string `json:"access_token"`
}
type Client ¶
func NewClient ¶
func NewClient(httpClient core.HTTPContext, integration core.IntegrationContext) (*Client, error)
func (*Client) GetRepository ¶
func (c *Client) GetRepository(namespace, repository string) (*Repository, error)
func (*Client) GetRepositoryTag ¶
func (*Client) ListRepositories ¶
func (c *Client) ListRepositories(namespace string) ([]Repository, error)
func (*Client) ValidateCredentials ¶
type Configuration ¶
type DockerHub ¶
type DockerHub struct{}
func (*DockerHub) Configuration ¶
func (d *DockerHub) Configuration() []configuration.Field
func (*DockerHub) Description ¶
func (*DockerHub) HandleHook ¶ added in v0.18.0
func (d *DockerHub) HandleHook(ctx core.IntegrationHookContext) error
func (*DockerHub) HandleRequest ¶
func (d *DockerHub) HandleRequest(ctx core.HTTPRequestContext)
func (*DockerHub) Instructions ¶
func (*DockerHub) ListResources ¶
func (d *DockerHub) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
type GetImageTag ¶
type GetImageTag struct{}
func (*GetImageTag) Cancel ¶
func (c *GetImageTag) Cancel(ctx core.ExecutionContext) error
func (*GetImageTag) Cleanup ¶
func (c *GetImageTag) Cleanup(ctx core.SetupContext) error
func (*GetImageTag) Color ¶
func (c *GetImageTag) Color() string
func (*GetImageTag) Configuration ¶
func (c *GetImageTag) Configuration() []configuration.Field
func (*GetImageTag) Description ¶
func (c *GetImageTag) Description() string
func (*GetImageTag) Documentation ¶
func (c *GetImageTag) Documentation() string
func (*GetImageTag) ExampleOutput ¶
func (c *GetImageTag) ExampleOutput() map[string]any
func (*GetImageTag) Execute ¶
func (c *GetImageTag) Execute(ctx core.ExecutionContext) error
func (*GetImageTag) HandleHook ¶ added in v0.18.0
func (c *GetImageTag) HandleHook(ctx core.ActionHookContext) error
func (*GetImageTag) HandleWebhook ¶
func (c *GetImageTag) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*GetImageTag) Hooks ¶ added in v0.18.0
func (c *GetImageTag) Hooks() []core.Hook
func (*GetImageTag) Icon ¶
func (c *GetImageTag) Icon() string
func (*GetImageTag) Label ¶
func (c *GetImageTag) Label() string
func (*GetImageTag) Name ¶
func (c *GetImageTag) Name() string
func (*GetImageTag) OutputChannels ¶
func (c *GetImageTag) OutputChannels(configuration any) []core.OutputChannel
func (*GetImageTag) ProcessQueueItem ¶
func (c *GetImageTag) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*GetImageTag) Setup ¶
func (c *GetImageTag) Setup(ctx core.SetupContext) error
type ImagePushData ¶
type ImagePushPayload ¶
type ImagePushPayload struct {
CallbackURL string `json:"callback_url"`
PushData ImagePushData `json:"push_data"`
Repository ImagePushRepository `json:"repository"`
}
type ImagePushRepository ¶
type ImagePushRepository struct {
RepoName string `json:"repo_name"`
Name string `json:"name"`
Namespace string `json:"namespace"`
RepoURL string `json:"repo_url"`
IsPrivate bool `json:"is_private"`
Status string `json:"status"`
StarCount int `json:"star_count"`
PullCount int `json:"pull_count"`
Owner string `json:"owner"`
Repository string `json:"repository"`
}
type ListRepositoriesResponse ¶
type ListRepositoriesResponse struct {
Next string `json:"next"`
Results []Repository `json:"results"`
}
type OnImagePush ¶
type OnImagePush struct{}
func (*OnImagePush) Cleanup ¶
func (p *OnImagePush) Cleanup(ctx core.TriggerContext) error
func (*OnImagePush) Color ¶
func (p *OnImagePush) Color() string
func (*OnImagePush) Configuration ¶
func (p *OnImagePush) Configuration() []configuration.Field
func (*OnImagePush) Description ¶
func (p *OnImagePush) Description() string
func (*OnImagePush) Documentation ¶
func (p *OnImagePush) Documentation() string
func (*OnImagePush) ExampleData ¶
func (p *OnImagePush) ExampleData() map[string]any
func (*OnImagePush) HandleHook ¶ added in v0.18.0
func (p *OnImagePush) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)
func (*OnImagePush) HandleWebhook ¶
func (p *OnImagePush) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*OnImagePush) Hooks ¶ added in v0.18.0
func (p *OnImagePush) Hooks() []core.Hook
func (*OnImagePush) Icon ¶
func (p *OnImagePush) Icon() string
func (*OnImagePush) Label ¶
func (p *OnImagePush) Label() string
func (*OnImagePush) Name ¶
func (p *OnImagePush) Name() string
func (*OnImagePush) Setup ¶
func (p *OnImagePush) Setup(ctx core.TriggerContext) error
type OnImagePushConfiguration ¶
type OnImagePushConfiguration struct {
Repository string `json:"repository" mapstructure:"repository"`
Tags []configuration.Predicate `json:"tags" mapstructure:"tags"`
}
type OnImagePushMetadata ¶
type OnImagePushMetadata struct {
Repository *RepositoryMetadata `json:"repository" mapstructure:"repository"`
WebhookURL string `json:"webhookUrl" mapstructure:"webhookUrl"`
}
type Repository ¶
type Repository struct {
Name string `json:"name" mapstructure:"name"`
Namespace string `json:"namespace" mapstructure:"namespace"`
Description string `json:"description" mapstructure:"description"`
IsPrivate bool `json:"is_private" mapstructure:"is_private"`
StarCount int `json:"star_count" mapstructure:"star_count"`
PullCount int `json:"pull_count" mapstructure:"pull_count"`
Status string `json:"status_description" mapstructure:"status_description"`
}
type RepositoryMetadata ¶
type Tag ¶
type Tag struct {
ID int64 `json:"id"`
Name string `json:"name"`
FullSize int64 `json:"full_size"`
LastUpdated string `json:"last_updated"`
LastUpdater int64 `json:"last_updater"`
LastUpdaterUsername string `json:"last_updater_username"`
Status string `json:"status"`
TagLastPulled string `json:"tag_last_pulled"`
TagLastPushed string `json:"tag_last_pushed"`
Repository int64 `json:"repository"`
Images ImageSet `json:"images"`
}
Click to show internal directories.
Click to hide internal directories.