cadvisor: github.com/google/cadvisor/devicemapper/fake Index | Files

package fake

import "github.com/google/cadvisor/devicemapper/fake"

Copyright 2016 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2016 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Package Files

dmsetup_client_fake.go thin_ls_client_fake.go

type DmsetupCommand Uses

type DmsetupCommand struct {
    Name   string
    Result string
    Err    error
}

type FakeDmsetupClient Uses

type FakeDmsetupClient struct {
    // contains filtered or unexported fields
}

FakeDmsetupClient is a thread-unsafe fake implementation of the DmsetupClient interface

func NewFakeDmsetupClient Uses

func NewFakeDmsetupClient(t *testing.T, commands ...DmsetupCommand) *FakeDmsetupClient

NewFakeDmsetupClient returns a new fake DmsetupClient.

func (*FakeDmsetupClient) AddCommand Uses

func (c *FakeDmsetupClient) AddCommand(name string, result string, err error)

func (*FakeDmsetupClient) Message Uses

func (c *FakeDmsetupClient) Message(deviceName string, sector int, message string) ([]byte, error)

func (*FakeDmsetupClient) Status Uses

func (c *FakeDmsetupClient) Status(deviceName string) ([]byte, error)

func (*FakeDmsetupClient) Table Uses

func (c *FakeDmsetupClient) Table(deviceName string) ([]byte, error)

type FakeThinLsClient Uses

type FakeThinLsClient struct {
    // contains filtered or unexported fields
}

func NewFakeThinLsClient Uses

func NewFakeThinLsClient(result map[string]uint64, err error) *FakeThinLsClient

NewFakeThinLsClient returns a new fake ThinLsClient.

func (*FakeThinLsClient) ThinLs Uses

func (c *FakeThinLsClient) ThinLs(deviceName string) (map[string]uint64, error)

Package fake imports 1 packages (graph). Updated 2016-07-20. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).