remote

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InMemRemoteActionsCreate inMemRemoteActions = iota
	InMemRemoteActionsUpdate
	InMemRemoteActionsDelete
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureRemote

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

func NewAzureRemote

func NewAzureRemote(cfg config.Config, cred azcore.TokenCredential) (*AzureRemote, error)

func (*AzureRemote) Create

func (*AzureRemote) Delete

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

func (*AzureRemote) Get

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

func (*AzureRemote) Update

type InMemRemote

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

func NewInMemRemote

func NewInMemRemote() *InMemRemote

func (*InMemRemote) Actions

func (r *InMemRemote) Actions() []inMemRemoteAction

func (*InMemRemote) Create

func (*InMemRemote) CreateResponse

func (r *InMemRemote) CreateResponse(err error)

func (*InMemRemote) Delete

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

func (*InMemRemote) DeleteResponse

func (r *InMemRemote) DeleteResponse(err error)

func (*InMemRemote) Get

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

func (*InMemRemote) GetFirstResponse

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

func (*InMemRemote) GetSecondResponse

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

func (*InMemRemote) ResetActions

func (r *InMemRemote) ResetActions()

func (*InMemRemote) ResetGetSecond

func (r *InMemRemote) ResetGetSecond()

func (*InMemRemote) Update

func (*InMemRemote) UpdateResponse

func (r *InMemRemote) UpdateResponse(err error)

type Remote

type Remote 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 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

Jump to

Keyboard shortcuts

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