Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = "0.0.0"
Version is the plugin's version
var Writer = os.Stdout
Writer - a Linux-ish specific colorized output channel.
taken from https://github.com/cloudfoundry/cli/blob/master/cf/cmd/writer_unix.go
Functions ¶
Types ¶
type AccessToken ¶
type AccessToken struct {
Scopes []string `json:"scope"`
}
AccessToken has information about a user's scope
type Identifiable ¶
type Identifiable struct {
GUID string `mapstructure:"guid"`
}
Identifiable has a GUID field
type Labeled ¶
type Labeled struct {
Label string `mapstructure:"label"`
}
Labeled has a Label field
type Metadata ¶
type Metadata struct { GUID string `mapstructure:"guid"` URL string `mapstructure:"url"` CreatedAt string `mapstructure:"created_at"` UpdatedAt string `mapstructure:"updated_at"` }
Metadata represents info about a CF resource
type OutputRows ¶
type OutputRows []OutputRow
OutputRows wraps []OutputRow so we can support sort.Interface
func (OutputRows) Less ¶
func (o OutputRows) Less(i, j int) bool
type Page ¶
type Page struct { TotalResults int `mapstructure:"total_results"` TotalPages int `mapstructure:"total_pages"` PreviousURL string `mapstructure:"prev_url"` NextURL string `mapstructure:"next_url"` Resources []Resource `mapstructure:"resources"` }
Page is a collection of CF resources
type Resource ¶
type Resource struct { Metadata Metadata `mapstructure:"metadata"` Entity map[string]interface{} `mapstructure:"entity"` }
Resource is a CF resource
type ServiceAuditor ¶
type ServiceAuditor struct {
// contains filtered or unexported fields
}
ServiceAuditor will do the thing
func NewAuditor ¶
func NewAuditor(cli plugin.CliConnection) *ServiceAuditor
NewAuditor creates a new auditor
func (*ServiceAuditor) Audit ¶
func (s *ServiceAuditor) Audit() (OutputRows, error)
Audit does the thing
type ServiceAuditorPlugin ¶
ServiceAuditorPlugin will search a given foundation for service instances, bindings, and keys
func NewAuditorPlugin ¶
func NewAuditorPlugin(ui terminal.UI) *ServiceAuditorPlugin
NewAuditorPlugin returns an auditor with the given UI
func (*ServiceAuditorPlugin) GetMetadata ¶
func (p *ServiceAuditorPlugin) GetMetadata() plugin.PluginMetadata
GetMetadata returns usage and version info
func (*ServiceAuditorPlugin) Run ¶
func (p *ServiceAuditorPlugin) Run(cli plugin.CliConnection, args []string)
Run does the unit of work
type ServiceInstance ¶
type ServiceInstance struct {
ServicePlanGUID string `mapstructure:"service_plan_guid"`
}
ServiceInstance has information about the service plan from which it was created
type ServicePlan ¶
type ServicePlan struct { Named `mapstructure:",squash"` ServiceGUID string `mapstructure:"service_guid"` }
ServicePlan has information about the service that presents it