source

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AzureContainerAppVersion = "aca.xenit.io/v1alpha2"
	AzureContainerAppKind    = "AzureContainerApp"
)
View Source
const (
	AzureContainerJobVersion = "aca.xenit.io/v1alpha2"
	AzureContainerJobKind    = "AzureContainerJob"
)

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.ReconcileConfig, revisionCache cache.RevisionCache) (*GitSource, error)

func (*GitSource) Get

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

type ImageReplacementSpecification added in v0.0.13

type ImageReplacementSpecification struct {
	ImageName   *string `json:"imageName,omitempty" yaml:"imageName,omitempty"`
	NewImageTag *string `json:"newImageTag,omitempty" yaml:"newImageTag,omitempty"`
}

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) (*Sources, string, error)

func (*InMemSource) GetResponse

func (s *InMemSource) GetResponse(sources *Sources, revision string, err error)

type LocationFilterSpecification added in v0.0.11

type LocationFilterSpecification string

type RemoteSecretSpecification added in v0.0.5

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

func (*RemoteSecretSpecification) Valid added in v0.0.5

func (r *RemoteSecretSpecification) Valid() bool

type ReplacementsSpecification added in v0.0.13

type ReplacementsSpecification struct {
	Images []ImageReplacementSpecification `json:"images,omitempty" yaml:"image,omitempty"`
}

type Source

type Source interface {
	Get(ctx context.Context) (*Sources, 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.ReconcileConfig) (bool, 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"`
	Replacements   *ReplacementsSpecification     `json:"replacements,omitempty" yaml:"replacements,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) SetRegistry added in v0.0.18

func (apps *SourceApps) SetRegistry(name string, server string, username string, password string) error

func (*SourceApps) SetSecret added in v0.0.18

func (apps *SourceApps) SetSecret(name string, secretName string, secretValue string) error

func (*SourceApps) Unmarshal

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

type SourceJob added in v0.0.18

type SourceJob 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 *SourceJobSpecification `json:"spec,omitempty" yaml:"spec,omitempty"`
	Err           error
}

func (*SourceJob) Error added in v0.0.18

func (job *SourceJob) Error() error

func (*SourceJob) GetRemoteSecrets added in v0.0.18

func (job *SourceJob) GetRemoteSecrets() []RemoteSecretSpecification

func (*SourceJob) Name added in v0.0.18

func (job *SourceJob) Name() string

func (*SourceJob) SetRegistry added in v0.0.18

func (job *SourceJob) SetRegistry(server string, username string, password string) error

func (*SourceJob) SetSecret added in v0.0.18

func (job *SourceJob) SetSecret(name string, value string) error

func (*SourceJob) ShoudRunInLocation added in v0.0.18

func (job *SourceJob) ShoudRunInLocation(currentLocation string) bool

func (*SourceJob) Unmarshal added in v0.0.18

func (job *SourceJob) Unmarshal(y []byte, cfg config.ReconcileConfig) (bool, error)

func (*SourceJob) ValidateFields added in v0.0.18

func (job *SourceJob) ValidateFields() error

type SourceJobSpecification added in v0.0.18

type SourceJobSpecification struct {
	Job            *armappcontainers.Job         `json:"job,omitempty" yaml:"job,omitempty"`
	RemoteSecrets  []RemoteSecretSpecification   `json:"remoteSecrets,omitempty" yaml:"remoteSecrets,omitempty"`
	LocationFilter []LocationFilterSpecification `json:"locationFilter,omitempty" yaml:"locationFilter,omitempty"`
	Replacements   *ReplacementsSpecification    `json:"replacements,omitempty" yaml:"replacements,omitempty"`
}

type SourceJobs added in v0.0.18

type SourceJobs map[string]SourceJob

func (*SourceJobs) Delete added in v0.0.18

func (jobs *SourceJobs) Delete(name string)

func (*SourceJobs) Error added in v0.0.18

func (jobs *SourceJobs) Error() error

func (*SourceJobs) Get added in v0.0.18

func (jobs *SourceJobs) Get(name string) (SourceJob, bool)

func (*SourceJobs) GetSortedNames added in v0.0.18

func (jobs *SourceJobs) GetSortedNames() []string

func (*SourceJobs) GetUniqueRemoteSecretNames added in v0.0.18

func (jobs *SourceJobs) GetUniqueRemoteSecretNames() []string

func (*SourceJobs) SetRegistry added in v0.0.18

func (jobs *SourceJobs) SetRegistry(name string, server string, username string, password string) error

func (*SourceJobs) SetSecret added in v0.0.18

func (jobs *SourceJobs) SetSecret(name string, secretName string, secretValue string) error

func (*SourceJobs) Unmarshal added in v0.0.18

func (jobs *SourceJobs) Unmarshal(path string, y []byte, cfg config.ReconcileConfig)

type Sources added in v0.0.18

type Sources struct {
	Apps *SourceApps
	Jobs *SourceJobs
}

func (*Sources) GetUniqueRemoteSecretNames added in v0.0.19

func (srcs *Sources) GetUniqueRemoteSecretNames() []string

Jump to

Keyboard shortcuts

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