Documentation ¶
Index ¶
- Constants
- type AzureRemote
- func (r *AzureRemote) Create(ctx context.Context, name string, app armappcontainers.ContainerApp) error
- func (r *AzureRemote) Delete(ctx context.Context, name string) error
- func (r *AzureRemote) Get(ctx context.Context) (*RemoteApps, error)
- func (r *AzureRemote) Update(ctx context.Context, name string, app armappcontainers.ContainerApp) error
- type InMemRemote
- func (r *InMemRemote) Actions() []inMemRemoteAction
- func (r *InMemRemote) Create(ctx context.Context, name string, app armappcontainers.ContainerApp) error
- func (r *InMemRemote) CreateResponse(err error)
- func (r *InMemRemote) Delete(ctx context.Context, name string) error
- func (r *InMemRemote) DeleteResponse(err error)
- func (r *InMemRemote) Get(ctx context.Context) (*RemoteApps, error)
- func (r *InMemRemote) GetFirstResponse(remoteApps *RemoteApps, err error)
- func (r *InMemRemote) GetSecondResponse(remoteApps *RemoteApps, err error)
- func (r *InMemRemote) ResetActions()
- func (r *InMemRemote) ResetGetSecond()
- func (r *InMemRemote) Update(ctx context.Context, name string, app armappcontainers.ContainerApp) error
- func (r *InMemRemote) UpdateResponse(err error)
- type Remote
- type RemoteApp
- type RemoteApps
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 (r *AzureRemote) Create(ctx context.Context, name string, app armappcontainers.ContainerApp) error
func (*AzureRemote) Get ¶
func (r *AzureRemote) Get(ctx context.Context) (*RemoteApps, error)
func (*AzureRemote) Update ¶
func (r *AzureRemote) Update(ctx context.Context, name string, app armappcontainers.ContainerApp) error
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 (r *InMemRemote) Create(ctx context.Context, name string, app armappcontainers.ContainerApp) error
func (*InMemRemote) CreateResponse ¶
func (r *InMemRemote) CreateResponse(err 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 (r *InMemRemote) Update(ctx context.Context, name string, app armappcontainers.ContainerApp) error
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 ¶
func (*RemoteApps) GetSortedNames ¶
func (apps *RemoteApps) GetSortedNames() []string
Click to show internal directories.
Click to hide internal directories.