Documentation
¶
Index ¶
- type SSHPublicKey
- type Server
- type Store
- func (s *Store) CreateServer(domain, endpointType, identityProvider, loggingRole string, protocols []string, ...) (*Server, error)
- func (s *Store) CreateUser(serverID, userName, role, homeDir, homeDirType string, tags map[string]string) (*User, error)
- func (s *Store) CreateWorkflow(description string, steps, onException []map[string]any, ...) (*Workflow, error)
- func (s *Store) DeleteSSHPublicKey(serverID, userName, keyID string) error
- func (s *Store) DeleteServer(id string) bool
- func (s *Store) DeleteUser(serverID, userName string) bool
- func (s *Store) DeleteWorkflow(id string) bool
- func (s *Store) DescribeWorkflow(id string) (*Workflow, bool)
- func (s *Store) GetServer(id string) (*Server, bool)
- func (s *Store) GetUser(serverID, userName string) (*User, bool)
- func (s *Store) ImportSSHPublicKey(serverID, userName, keyBody string) (*SSHPublicKey, error)
- func (s *Store) ListServers() []*Server
- func (s *Store) ListTagsForResource(arn string) (map[string]string, bool)
- func (s *Store) ListUsers(serverID string) []*User
- func (s *Store) ListWorkflows() []*Workflow
- func (s *Store) StartServer(id string) error
- func (s *Store) StopServer(id string) error
- func (s *Store) TagResource(arn string, tags map[string]string) bool
- func (s *Store) UntagResource(arn string, keys []string) bool
- func (s *Store) UpdateServer(id, loggingRole string, protocols []string) (*Server, error)
- func (s *Store) UpdateUser(serverID, userName, homeDir, role string) (*User, error)
- type TransferService
- type User
- type Workflow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHPublicKey ¶
SSHPublicKey represents an SSH public key for a Transfer user.
type Server ¶
type Server struct {
ServerID string
Arn string
Endpoint string
Domain string
EndpointType string
IdentityProviderType string
LoggingRole string
Protocols []string
State string
Tags map[string]string
UserCount int
CreatedAt time.Time
// contains filtered or unexported fields
}
Server represents an AWS Transfer Family server.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages Transfer Family resources in memory.
func (*Store) CreateServer ¶
func (s *Store) CreateServer(domain, endpointType, identityProvider, loggingRole string, protocols []string, tags map[string]string) (*Server, error)
CreateServer creates a new Transfer server.
func (*Store) CreateUser ¶
func (s *Store) CreateUser(serverID, userName, role, homeDir, homeDirType string, tags map[string]string) (*User, error)
CreateUser creates a new user on a server.
func (*Store) CreateWorkflow ¶
func (s *Store) CreateWorkflow(description string, steps, onException []map[string]any, tags map[string]string) (*Workflow, error)
CreateWorkflow creates a new Transfer workflow.
func (*Store) DeleteSSHPublicKey ¶
DeleteSSHPublicKey removes an SSH public key from a user.
func (*Store) DeleteServer ¶
DeleteServer removes a server.
func (*Store) DeleteUser ¶
DeleteUser removes a user.
func (*Store) DeleteWorkflow ¶
DeleteWorkflow removes a workflow.
func (*Store) DescribeWorkflow ¶
DescribeWorkflow retrieves a workflow by ID.
func (*Store) ImportSSHPublicKey ¶
func (s *Store) ImportSSHPublicKey(serverID, userName, keyBody string) (*SSHPublicKey, error)
ImportSSHPublicKey adds an SSH public key to a user.
func (*Store) ListServers ¶
ListServers returns all servers.
func (*Store) ListTagsForResource ¶
ListTagsForResource returns tags for a resource by ARN.
func (*Store) ListWorkflows ¶
ListWorkflows returns all workflows.
func (*Store) StartServer ¶
StartServer starts a server, transitioning to ONLINE.
func (*Store) StopServer ¶
StopServer stops a server, transitioning to STOPPING then OFFLINE.
func (*Store) TagResource ¶
TagResource adds tags to a resource by ARN.
func (*Store) UntagResource ¶
UntagResource removes tags from a resource by ARN.
func (*Store) UpdateServer ¶
UpdateServer updates a server's configuration.
type TransferService ¶
type TransferService struct {
// contains filtered or unexported fields
}
TransferService is the cloudmock implementation of the AWS Transfer Family API.
func New ¶
func New(accountID, region string) *TransferService
New returns a new TransferService for the given AWS account ID and region.
func (*TransferService) Actions ¶
func (s *TransferService) Actions() []service.Action
Actions returns the list of Transfer Family API actions supported by this service.
func (*TransferService) HandleRequest ¶
func (s *TransferService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)
HandleRequest routes an incoming Transfer request to the appropriate handler.
func (*TransferService) HealthCheck ¶
func (s *TransferService) HealthCheck() error
HealthCheck always returns nil.
func (*TransferService) Name ¶
func (s *TransferService) Name() string
Name returns the AWS service name used for routing.