20 lines
351 B
Go
20 lines
351 B
Go
|
package ssmparameters
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"github.com/lmika/awstools/internal/ssm-browse/models"
|
||
|
)
|
||
|
|
||
|
type Service struct {
|
||
|
provider SSMProvider
|
||
|
}
|
||
|
|
||
|
func NewService(provider SSMProvider) *Service {
|
||
|
return &Service{
|
||
|
provider: provider,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (s *Service) List(ctx context.Context) (*models.SSMParameters, error) {
|
||
|
return s.provider.List(ctx)
|
||
|
}
|