client

package
v0.0.0-...-17deb78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2017 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Fetch user accounts
	GetUsers() (account.Users, error)
	// Fetch group accounts
	GetGroups() (account.Groups, error)
	// Fetch SSH keys
	GetSSHKeys() (account.SSHKeys, error)
}

Client will fetch data from data source

func NewGCEMetadatClient

func NewGCEMetadatClient(conf GCEMetadataConf) Client

Create a new gceMetadataClient The client will make request to the metadata server

type GCEMetadataConf

type GCEMetadataConf struct {
	KeyPrefix   string
	UserKey     string
	GroupKey    string
	PrimaryGid  string
	HomeDirBase string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL