Documentation ¶
Overview ¶
package ionos contains a self-contained ionos of a webhook that passes the cert-manager DNS conformance tests
Index ¶
- func New() webhook.Solver
- func NewMock(port string) webhook.Solver
- type Client
- type Config
- type IonosClient
- func (e *IonosClient) AddRecord(ctx context.Context, zoneId string, records RecordCreateRequest) error
- func (e *IonosClient) DeleteRecord(ctx context.Context, zoneId string, recordId string) error
- func (e *IonosClient) GetRecordById(ctx context.Context, zoneId string, recordId string) (string, error)
- func (e *IonosClient) GetRecordIdByName(ctx context.Context, zoneId string, recordName string) (string, error)
- func (e *IonosClient) GetZoneById(ctx context.Context, id string) (string, error)
- func (e *IonosClient) GetZoneIdByName(ctx context.Context, name string) (string, error)
- func (e *IonosClient) SetConfig(ctx context.Context, config *Config)
- type MockClient
- func (e *MockClient) AddRecord(ctx context.Context, zoneId string, records RecordCreateRequest) error
- func (e *MockClient) DeleteRecord(ctx context.Context, zoneId string, recordId string) error
- func (e *MockClient) GetRecordById(ctx context.Context, zoneId string, recordId string) (string, error)
- func (e *MockClient) GetRecordIdByName(ctx context.Context, zoneId string, recordName string) (string, error)
- func (e *MockClient) GetZoneById(ctx context.Context, id string) (string, error)
- func (e *MockClient) GetZoneIdByName(ctx context.Context, name string) (string, error)
- func (e *MockClient) SetConfig(ctx context.Context, config *Config)
- type Record
- type RecordCreate
- type RecordCreateRequest
- type RecordResponse
- type Zone
- type ZoneResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { GetZoneIdByName(ctx context.Context, name string) (string, error) GetZoneById(ctx context.Context, id string) (string, error) SetConfig(ctx context.Context, config *Config) AddRecord(ctx context.Context, zoneId string, records RecordCreateRequest) error GetRecordIdByName(ctx context.Context, zoneId string, recordName string) (string, error) GetRecordById(ctx context.Context, zoneId string, recordId string) (string, error) DeleteRecord(ctx context.Context, zoneId string, recordId string) error }
func NewMockClient ¶
func NewMockClient() Client
type IonosClient ¶
type IonosClient struct {
// contains filtered or unexported fields
}
func (*IonosClient) AddRecord ¶
func (e *IonosClient) AddRecord(ctx context.Context, zoneId string, records RecordCreateRequest) error
func (*IonosClient) DeleteRecord ¶
func (*IonosClient) GetRecordById ¶
func (*IonosClient) GetRecordIdByName ¶
func (*IonosClient) GetZoneById ¶
func (*IonosClient) GetZoneIdByName ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
func (*MockClient) AddRecord ¶
func (e *MockClient) AddRecord(ctx context.Context, zoneId string, records RecordCreateRequest) error
func (*MockClient) DeleteRecord ¶
func (*MockClient) GetRecordById ¶
func (*MockClient) GetRecordIdByName ¶
func (*MockClient) GetZoneById ¶
func (*MockClient) GetZoneIdByName ¶
type RecordCreate ¶
type RecordCreateRequest ¶
type RecordCreateRequest []RecordCreate
type RecordResponse ¶
type ZoneResponse ¶
type ZoneResponse []Zone
Click to show internal directories.
Click to hide internal directories.