account

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: ISC Imports: 3 Imported by: 1

Documentation

Overview

Package account is the client.Panorama.GcpAccount namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	Project = "gcp"
	Gke     = "gke"
)

Valid ProjectType values.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

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

Account is the client.Panorama.GcpAccount namespace.

func (*Account) Delete

func (c *Account) Delete(e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*Account) Edit

func (c *Account) Edit(e Entry) error

Edit performs EDIT to create / update one object.

func (*Account) Get

func (c *Account) Get(name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*Account) GetList

func (c *Account) GetList() ([]string, error)

GetList performs GET to retrieve a list of values.

func (*Account) Initialize

func (c *Account) Initialize(con util.XapiClient)

Initialize is invoked by client.Initialize().

func (*Account) Set

func (c *Account) Set(e ...Entry) error

Set performs SET to create / update one or more objects.

func (*Account) Show

func (c *Account) Show(name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*Account) ShowList

func (c *Account) ShowList() ([]string, error)

ShowList performs SHOW to retrieve a list of values.

type Entry

type Entry struct {
	Name                         string
	Description                  string
	ProjectId                    string
	ServiceAccountCredentialType string
	CredentialFile               string // encrypted
}

Entry is a normalized, version independent representation of GCP account credentials.

func (*Entry) Copy

func (o *Entry) Copy(s Entry)

Copy copies the information from source Entry `s` to this object. As the Name field relates to the XPATH of this object, this field is not copied.

Jump to

Keyboard shortcuts

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