Documentation
¶
Index ¶
- Variables
- func EqualResource(expected resource.Quantity) types2.GomegaMatcher
- type EtcdClientStub
- func (s *EtcdClientStub) CreateSnapshot(_ context.Context) (*clientv3.SnapshotResponse, error)
- func (s *EtcdClientStub) DisarmAlarm(_ context.Context, alarm *clientv3.AlarmMember) error
- func (s *EtcdClientStub) GetStatuses(_ context.Context) (map[string]*clientv3.StatusResponse, error)
- func (s *EtcdClientStub) ListAlarms(_ context.Context) (*clientv3.AlarmResponse, error)
- type S3ClientStub
Constants ¶
This section is empty.
Variables ¶
View Source
var EtcdSnapshotData = []byte("etcd snapshot data")
Functions ¶
func EqualResource ¶ added in v1.2.0
func EqualResource(expected resource.Quantity) types2.GomegaMatcher
Types ¶
type EtcdClientStub ¶
type EtcdClientStub struct {
StatusError error
SnapshotError error
AlarmError error
DisarmError error
StatusResponses map[string]*clientv3.StatusResponse
ActiveAlarms []*etcdserverpb.AlarmMember
}
func NewEtcdClientStub ¶
func NewEtcdClientStub() *EtcdClientStub
func (*EtcdClientStub) CreateSnapshot ¶
func (s *EtcdClientStub) CreateSnapshot(_ context.Context) (*clientv3.SnapshotResponse, error)
func (*EtcdClientStub) DisarmAlarm ¶
func (s *EtcdClientStub) DisarmAlarm(_ context.Context, alarm *clientv3.AlarmMember) error
func (*EtcdClientStub) GetStatuses ¶
func (s *EtcdClientStub) GetStatuses(_ context.Context) (map[string]*clientv3.StatusResponse, error)
func (*EtcdClientStub) ListAlarms ¶
func (s *EtcdClientStub) ListAlarms(_ context.Context) (*clientv3.AlarmResponse, error)
type S3ClientStub ¶
func NewS3ClientStub ¶
func NewS3ClientStub() *S3ClientStub
func (*S3ClientStub) Upload ¶
func (s *S3ClientStub) Upload(_ context.Context, body io.ReadCloser) (retErr error)
Click to show internal directories.
Click to hide internal directories.