source

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AzureContainerAppVersion = "aca.xenit.io/v1alpha1"
	AzureContainerAppKind    = "AzureContainerApp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GitSource

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

func NewGitSource

func NewGitSource(cfg config.Config) (*GitSource, error)

func (*GitSource) Get

func (s *GitSource) Get(ctx context.Context) (*SourceApps, string, error)

type InMemSource

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

func NewInMemSource

func NewInMemSource() *InMemSource

func (*InMemSource) Get

func (s *InMemSource) Get(ctx context.Context) (*SourceApps, string, error)

func (*InMemSource) GetResponse

func (s *InMemSource) GetResponse(sourceApps *SourceApps, revision string, err error)

type LocationFilterSpecification added in v0.0.11

type LocationFilterSpecification string

type RemoteSecretSpecification added in v0.0.5

type RemoteSecretSpecification struct {
	AppSecretName    *string `json:"appSecretName,omitempty" yaml:"appSecretName,omitempty"`
	RemoteSecretName *string `json:"remoteSecretName,omitempty" yaml:"remoteSecretName,omitempty"`
}

func (*RemoteSecretSpecification) Valid added in v0.0.5

func (r *RemoteSecretSpecification) Valid() bool

type Source

type Source interface {
	Get(ctx context.Context) (*SourceApps, string, error)
}

type SourceApp

type SourceApp struct {
	Kind          string                  `json:"kind,omitempty" yaml:"kind,omitempty"`
	APIVersion    string                  `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
	Metadata      map[string]string       `json:"metadata,omitempty" yaml:"metadata,omitempty"`
	Specification *SourceAppSpecification `json:"spec,omitempty" yaml:"spec,omitempty"`
	Err           error
}

func (*SourceApp) Error

func (app *SourceApp) Error() error

func (*SourceApp) GetRemoteSecrets added in v0.0.5

func (app *SourceApp) GetRemoteSecrets() []RemoteSecretSpecification

func (*SourceApp) Name

func (app *SourceApp) Name() string

func (*SourceApp) SetRegistry added in v0.0.6

func (app *SourceApp) SetRegistry(server string, username string, password string) error

func (*SourceApp) SetSecret added in v0.0.5

func (app *SourceApp) SetSecret(name string, value string) error

func (*SourceApp) ShoudRunInLocation added in v0.0.11

func (app *SourceApp) ShoudRunInLocation(currentLocation string) bool

func (*SourceApp) Unmarshal

func (app *SourceApp) Unmarshal(y []byte, cfg config.Config) error

func (*SourceApp) ValidateFields

func (app *SourceApp) ValidateFields() error

type SourceAppSpecification added in v0.0.2

type SourceAppSpecification struct {
	App            *armappcontainers.ContainerApp `json:"app,omitempty" yaml:"app,omitempty"`
	RemoteSecrets  []RemoteSecretSpecification    `json:"remoteSecrets,omitempty" yaml:"remoteSecrets,omitempty"`
	LocationFilter []LocationFilterSpecification  `json:"locationFilter,omitempty" yaml:"locationFilter,omitempty"`
}

type SourceApps

type SourceApps map[string]SourceApp

func (*SourceApps) Delete added in v0.0.11

func (apps *SourceApps) Delete(name string)

func (*SourceApps) Error

func (apps *SourceApps) Error() error

func (*SourceApps) Get

func (apps *SourceApps) Get(name string) (SourceApp, bool)

func (*SourceApps) GetSortedNames

func (apps *SourceApps) GetSortedNames() []string

func (*SourceApps) GetUniqueRemoteSecretNames added in v0.0.5

func (apps *SourceApps) GetUniqueRemoteSecretNames() []string

func (*SourceApps) SetAppRegistry added in v0.0.6

func (apps *SourceApps) SetAppRegistry(appName string, server string, username string, password string) error

func (*SourceApps) SetAppSecret added in v0.0.5

func (apps *SourceApps) SetAppSecret(appName string, secretName string, secretValue string) error

func (*SourceApps) Unmarshal

func (apps *SourceApps) Unmarshal(path string, y []byte, cfg config.Config)

Jump to

Keyboard shortcuts

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