mirror of
https://github.com/int128/kubelogin.git
synced 2026-05-09 09:26:35 +00:00
26 lines
536 B
Go
26 lines
536 B
Go
// Package setup provides the use case of setting up environment.
|
|
package setup
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/google/wire"
|
|
"github.com/int128/kubelogin/pkg/infrastructure/logger"
|
|
"github.com/int128/kubelogin/pkg/usecases/authentication"
|
|
)
|
|
|
|
var Set = wire.NewSet(
|
|
wire.Struct(new(Setup), "*"),
|
|
wire.Bind(new(Interface), new(*Setup)),
|
|
)
|
|
|
|
type Interface interface {
|
|
DoStage1()
|
|
DoStage2(ctx context.Context, in Stage2Input) error
|
|
}
|
|
|
|
type Setup struct {
|
|
Authentication authentication.Interface
|
|
Logger logger.Interface
|
|
}
|