Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMethod ¶
type AuthMethod = shield.AuthMethod
type Client ¶
type Client interface { io.Closer CreateSchedule(instance string, details brokerapi.ProvisionDetails, url string, creds interface{}) error DeleteSchedule(instance string, details brokerapi.DeprovisionDetails) error }
The client interface, also useful for mocking and testing.
type NetworkClient ¶
type NetworkClient struct {
// contains filtered or unexported fields
}
The actual implementation of the client with network connectivity.
func NewClient ¶
func NewClient(cfg Config) (*NetworkClient, error)
func (*NetworkClient) Close ¶
func (cli *NetworkClient) Close() error
func (*NetworkClient) CreateSchedule ¶
func (cli *NetworkClient) CreateSchedule(instanceID string, details brokerapi.ProvisionDetails, host string, creds interface{}) error
func (*NetworkClient) DeleteSchedule ¶
func (cli *NetworkClient) DeleteSchedule(instanceID string, details brokerapi.DeprovisionDetails) error
type NoopClient ¶
type NoopClient struct{}
A noop implementation that always returns nil for all methods.
func (*NoopClient) Close ¶
func (cli *NoopClient) Close() error
func (*NoopClient) CreateSchedule ¶
func (cli *NoopClient) CreateSchedule(instance string, details brokerapi.ProvisionDetails, url string, creds interface{}) error
func (*NoopClient) DeleteSchedule ¶
func (cli *NoopClient) DeleteSchedule(instance string, details brokerapi.DeprovisionDetails) error
Click to show internal directories.
Click to hide internal directories.