Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FirewallRepository ¶
type FirewallUseCase ¶
type FirewallUseCase interface { List(ctx context.Context) error Get(ctx context.Context, target string) error Apply(ctx context.Context, fileBody []byte) error Delete(ctx context.Context, target string) error }
func NewFirewallUseCase ¶
func NewFirewallUseCase(fr FirewallRepository, ir InstanceRepository) FirewallUseCase
type InstanceRepository ¶
type InstanceUseCase ¶
type InstanceUseCase interface { List(ctx context.Context) error Create(ctx context.Context, name string, planID int, osID int, regionID int, sshKeyID int) error Start(ctx context.Context, name string) error Stop(ctx context.Context, name string) error ForceStop(ctx context.Context, name string) error Delete(ctx context.Context, name string) error }
func NewInstanceUseCase ¶
func NewInstanceUseCase(i InstanceRepository) InstanceUseCase
type OSUseCase ¶
func NewOSUseCase ¶
func NewOSUseCase(r OSRepository) OSUseCase
type PlanRepository ¶
type PlanUseCase ¶
func NewPlanUseCase ¶
func NewPlanUseCase(r PlanRepository) PlanUseCase
type SSHKeyRepository ¶
type SSHKeyUseCase ¶
func NewSSHKeyUseCase ¶
func NewSSHKeyUseCase(r SSHKeyRepository) SSHKeyUseCase
Click to show internal directories.
Click to hide internal directories.