Documentation
¶
Index ¶
- type APICall
- type MockAPIServer
- func (m *MockAPIServer) GetCalls() []APICall
- func (m *MockAPIServer) Reset()
- func (m *MockAPIServer) SetOrganizations(orgs []dotenv.Organization)
- func (m *MockAPIServer) SetProjects(orgSlug string, projects []dotenv.Project)
- func (m *MockAPIServer) SetSecrets(projectSlug string, secrets map[string]string)
- func (m *MockAPIServer) SimulateError(_ string, _ int, _ string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPIServer ¶
MockAPIServer simulates the DotEnv API
func NewMockAPIServer ¶
func NewMockAPIServer() *MockAPIServer
NewMockAPIServer creates a new mock API server
func (*MockAPIServer) GetCalls ¶
func (m *MockAPIServer) GetCalls() []APICall
func (*MockAPIServer) Reset ¶
func (m *MockAPIServer) Reset()
func (*MockAPIServer) SetOrganizations ¶
func (m *MockAPIServer) SetOrganizations(orgs []dotenv.Organization)
Helper methods to set up test data
func (*MockAPIServer) SetProjects ¶
func (m *MockAPIServer) SetProjects(orgSlug string, projects []dotenv.Project)
func (*MockAPIServer) SetSecrets ¶
func (m *MockAPIServer) SetSecrets(projectSlug string, secrets map[string]string)
func (*MockAPIServer) SimulateError ¶
func (m *MockAPIServer) SimulateError(_ string, _ int, _ string)
SimulateError configures the server to return an error for specific requests. Currently a no-op placeholder; arguments are reserved for the future implementation.
Click to show internal directories.
Click to hide internal directories.