remote

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App added in v0.0.18

type App interface {
	Get(ctx context.Context) (*RemoteApps, error)
	Create(ctx context.Context, name string, app armappcontainers.ContainerApp) error
	Update(ctx context.Context, name string, app armappcontainers.ContainerApp) error
	Delete(ctx context.Context, name string) error
}

type AzureApp added in v0.0.18

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

func NewAzureApp added in v0.0.18

func NewAzureApp(cfg config.ReconcileConfig, cred azcore.TokenCredential) (*AzureApp, error)

func (*AzureApp) Create added in v0.0.18

func (r *AzureApp) Create(ctx context.Context, name string, app armappcontainers.ContainerApp) error

func (*AzureApp) Delete added in v0.0.18

func (r *AzureApp) Delete(ctx context.Context, name string) error

func (*AzureApp) Get added in v0.0.18

func (r *AzureApp) Get(ctx context.Context) (*RemoteApps, error)

func (*AzureApp) Update added in v0.0.18

func (r *AzureApp) Update(ctx context.Context, name string, app armappcontainers.ContainerApp) error

type AzureJob added in v0.0.18

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

func NewAzureJob added in v0.0.18

func NewAzureJob(cfg config.ReconcileConfig, cred azcore.TokenCredential) (*AzureJob, error)

func (*AzureJob) Create added in v0.0.18

func (r *AzureJob) Create(ctx context.Context, name string, job armappcontainers.Job) error

func (*AzureJob) Delete added in v0.0.18

func (r *AzureJob) Delete(ctx context.Context, name string) error

func (*AzureJob) Get added in v0.0.18

func (r *AzureJob) Get(ctx context.Context) (*RemoteJobs, error)

func (*AzureJob) Update added in v0.0.18

func (r *AzureJob) Update(ctx context.Context, name string, job armappcontainers.Job) error

type InMemApp added in v0.0.18

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

func NewInMemApp added in v0.0.18

func NewInMemApp() *InMemApp

func (*InMemApp) Actions added in v0.0.18

func (r *InMemApp) Actions() []InMemAppAction

func (*InMemApp) Create added in v0.0.18

func (r *InMemApp) Create(ctx context.Context, name string, app armappcontainers.ContainerApp) error

func (*InMemApp) CreateResponse added in v0.0.18

func (r *InMemApp) CreateResponse(err error)

func (*InMemApp) Delete added in v0.0.18

func (r *InMemApp) Delete(ctx context.Context, name string) error

func (*InMemApp) DeleteResponse added in v0.0.18

func (r *InMemApp) DeleteResponse(err error)

func (*InMemApp) Get added in v0.0.18

func (r *InMemApp) Get(ctx context.Context) (*RemoteApps, error)

func (*InMemApp) GetFirstResponse added in v0.0.18

func (r *InMemApp) GetFirstResponse(remoteApps *RemoteApps, err error)

func (*InMemApp) GetSecondResponse added in v0.0.18

func (r *InMemApp) GetSecondResponse(remoteApps *RemoteApps, err error)

func (*InMemApp) ResetActions added in v0.0.18

func (r *InMemApp) ResetActions()

func (*InMemApp) ResetGetSecond added in v0.0.18

func (r *InMemApp) ResetGetSecond()

func (*InMemApp) Update added in v0.0.18

func (r *InMemApp) Update(ctx context.Context, name string, app armappcontainers.ContainerApp) error

func (*InMemApp) UpdateResponse added in v0.0.18

func (r *InMemApp) UpdateResponse(err error)

type InMemAppAction added in v0.0.18

type InMemAppAction struct {
	Name   string
	Action InMemAppActions
	App    armappcontainers.ContainerApp
}

type InMemAppActions added in v0.0.18

type InMemAppActions int
const (
	InMemAppActionsCreate InMemAppActions = iota
	InMemAppActionsUpdate
	InMemAppActionsDelete
)

type InMemJob added in v0.0.18

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

func NewInMemJob added in v0.0.18

func NewInMemJob() *InMemJob

func (*InMemJob) Actions added in v0.0.18

func (r *InMemJob) Actions() []InMemJobAction

func (*InMemJob) Create added in v0.0.18

func (r *InMemJob) Create(ctx context.Context, name string, job armappcontainers.Job) error

func (*InMemJob) CreateResponse added in v0.0.18

func (r *InMemJob) CreateResponse(err error)

func (*InMemJob) Delete added in v0.0.18

func (r *InMemJob) Delete(ctx context.Context, name string) error

func (*InMemJob) DeleteResponse added in v0.0.18

func (r *InMemJob) DeleteResponse(err error)

func (*InMemJob) Get added in v0.0.18

func (r *InMemJob) Get(ctx context.Context) (*RemoteJobs, error)

func (*InMemJob) GetFirstResponse added in v0.0.18

func (r *InMemJob) GetFirstResponse(remoteJobs *RemoteJobs, err error)

func (*InMemJob) GetSecondResponse added in v0.0.18

func (r *InMemJob) GetSecondResponse(remoteJobs *RemoteJobs, err error)

func (*InMemJob) ResetActions added in v0.0.18

func (r *InMemJob) ResetActions()

func (*InMemJob) ResetGetSecond added in v0.0.18

func (r *InMemJob) ResetGetSecond()

func (*InMemJob) Update added in v0.0.18

func (r *InMemJob) Update(ctx context.Context, name string, job armappcontainers.Job) error

func (*InMemJob) UpdateResponse added in v0.0.18

func (r *InMemJob) UpdateResponse(err error)

type InMemJobAction added in v0.0.18

type InMemJobAction struct {
	Name   string
	Action InMemJobActions
	Job    armappcontainers.Job
}

type InMemJobActions added in v0.0.18

type InMemJobActions int
const (
	InMemJobActionsCreate InMemJobActions = iota
	InMemJobActionsUpdate
	InMemJobActionsDelete
)

type Job added in v0.0.18

type Job interface {
	Get(ctx context.Context) (*RemoteJobs, error)
	Create(ctx context.Context, name string, app armappcontainers.Job) error
	Update(ctx context.Context, name string, app armappcontainers.Job) error
	Delete(ctx context.Context, name string) error
}

type RemoteApp

type RemoteApp struct {
	App     *armappcontainers.ContainerApp
	Managed bool
}

type RemoteApps

type RemoteApps map[string]RemoteApp

func (*RemoteApps) Get

func (apps *RemoteApps) Get(name string) (RemoteApp, bool)

func (*RemoteApps) GetSortedNames

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

type RemoteJob added in v0.0.18

type RemoteJob struct {
	Job     *armappcontainers.Job
	Managed bool
}

type RemoteJobs added in v0.0.18

type RemoteJobs map[string]RemoteJob

func (*RemoteJobs) Get added in v0.0.18

func (jobs *RemoteJobs) Get(name string) (RemoteJob, bool)

func (*RemoteJobs) GetSortedNames added in v0.0.18

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

Jump to

Keyboard shortcuts

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