Documentation
¶
Overview ¶
This is the workflow action for calling an api
Index ¶
- func Action_DockerRegDownloadImages(w *workflow.Workflow, m *workflow.TemplateData) error
- func Action_DockerRegUploadImages(w *workflow.Workflow, m *workflow.TemplateData) error
- func GetSchema() workflow.SchemaEndpoint
- func ImageAccount(image string) string
- func ImageName(image string) string
- func ImageNameTag(image string) string
- func ImageRegistry(image string) string
- func ImageShortName(image string) string
- func ImageTag(image string) string
- func RemapImage(w *workflow.Workflow, image string, target_name string, no_tag bool, ...) string
- func RemapImage2(w *workflow.Workflow, image string, target_name string, no_tag bool) string
- type DockerRegSchema
- type DockerRegistryOption
- type Manifest
- type Registry
- func (m *Registry) Download(config string, save_name string) error
- func (m *Registry) GetImageNameTag(image_path string) (string, error)
- func (m *Registry) String() string
- func (m *Registry) Update(opts ...DockerRegistryOption)
- func (m *Registry) Upload(image_path string, log_level int64) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action_DockerRegDownloadImages ¶
func Action_DockerRegDownloadImages(w *workflow.Workflow, m *workflow.TemplateData) error
func Action_DockerRegUploadImages ¶
func Action_DockerRegUploadImages(w *workflow.Workflow, m *workflow.TemplateData) error
func GetSchema ¶
func GetSchema() workflow.SchemaEndpoint
GetAction returns the action for the target
Types ¶
type DockerRegSchema ¶
type DockerRegSchema struct { }
func (DockerRegSchema) GetActionSchema ¶
func (s DockerRegSchema) GetActionSchema() map[string]workflow.ActionSchema
GetActions returns the actions for this schema
func (DockerRegSchema) GetFunctionMap ¶
func (s DockerRegSchema) GetFunctionMap() map[string]workflow.FunctionSchema
func (DockerRegSchema) GetTargetSchema ¶
func (s DockerRegSchema) GetTargetSchema() map[string]workflow.TargetSchema
GetTargetSchema returns the target schema for this action
type DockerRegistryOption ¶
type DockerRegistryOption func(*Registry)
K8Option is the option for the k8 connection
func OptionDockerRegHost ¶
func OptionDockerRegHost(host string) DockerRegistryOption
OptionDockerRegHost is the option for the host
func OptionDockerRegIgnoreSSL ¶
func OptionDockerRegIgnoreSSL(ignore_ssl bool) DockerRegistryOption
OptionDockerRegIgnoreSSL is the option for the ignore ssl
func OptionDockerRegPassword ¶
func OptionDockerRegPassword(password string) DockerRegistryOption
OptionDockerRegPassword is the option for the password
func OptionDockerRegUser ¶
func OptionDockerRegUser(user string) DockerRegistryOption
OptionDockerRegUser is the option for the user
type Registry ¶
type Registry struct { Host string `json:"host" yaml:"host" flag:"host h" desc:"the host url"` UserName string `json:"user" yaml:"user" flag:"user u" desc:"Username for the registry"` Password string `json:"password" yaml:"password" flag:"password p" desc:"Password for the registry"` IgnoreSSL bool `json:"ignore_ssl" yaml:"ignore_ssl" flag:"ignore_ssl i" desc:"Ignore SSL"` Library string `json:"library" yaml:"library" flag:"library l" desc:"Library to use"` }
func CreateDockerRegistry ¶
func CreateDockerRegistry(host string, UserName string, Password string, library string, IgnoreSSL bool) (*Registry, error)
Function to create the Registry struct
func (*Registry) GetImageNameTag ¶
func (*Registry) Update ¶
func (m *Registry) Update(opts ...DockerRegistryOption)
Update the k8 Type with the options
Click to show internal directories.
Click to hide internal directories.