customtemplates

package
v3.0.0-...-7b6adf0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAzureProviders

func NewAzureProviders(options *types.Options) ([]*customTemplateAzureBlob, error)

NewAzureProviders creates a new Azure Blob Storage provider for downloading custom templates

func NewGitHubProviders

func NewGitHubProviders(options *types.Options) ([]*customTemplateGitHubRepo, error)

NewGitHubProviders returns new instance of GitHub providers for downloading custom templates

func NewGitLabProviders

func NewGitLabProviders(options *types.Options) ([]*customTemplateGitLabRepo, error)

NewGitLabProviders returns a new list of GitLab providers for downloading custom templates

func NewS3Providers

func NewS3Providers(options *types.Options) ([]*customTemplateS3Bucket, error)

NewS3Providers returns a new instances of a s3 providers for downloading custom templates

Types

type CustomTemplatesManager

type CustomTemplatesManager struct {
	// contains filtered or unexported fields
}

CustomTemplatesManager is a manager for custom templates

func NewCustomTemplatesManager

func NewCustomTemplatesManager(options *types.Options) (*CustomTemplatesManager, error)

NewCustomTemplatesManager returns a new instance of a custom templates manager

func (*CustomTemplatesManager) Download

func (c *CustomTemplatesManager) Download(ctx context.Context)

Download downloads the custom templates

func (*CustomTemplatesManager) Update

func (c *CustomTemplatesManager) Update(ctx context.Context)

Update updates the custom templates

type Provider

type Provider interface {
	Download(ctx context.Context)
	Update(ctx context.Context)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL