describe

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2015 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// IsPersonalSubjectAccessReviewColumns contains known custom role extensions
	IsPersonalSubjectAccessReviewColumns = []string{"NAME"}
)

Functions

func DescribableResources added in v0.5.2

func DescribableResources() []string

List of all resource types we can describe

func DescribePolicy added in v0.5.1

func DescribePolicy(policy *authorizationapi.Policy) (string, error)

func DescribePolicyBinding added in v0.5.1

func DescribePolicyBinding(policyBinding *authorizationapi.PolicyBinding) (string, error)

func DescribeRole added in v0.4.2

func DescribeRole(role *authorizationapi.Role) (string, error)

func DescribeRoleBinding added in v0.4.2

func DescribeRoleBinding(roleBinding *authorizationapi.RoleBinding, role *authorizationapi.Role, err error) (string, error)

DescribeRoleBinding prints out information about a role binding and its associated role

func DescriberFor

func DescriberFor(kind string, c *client.Client, kclient kclient.Interface, host string) (kctl.Describer, bool)

DescriberFor returns a describer for a given kind of resource

func NewHumanReadablePrinter

func NewHumanReadablePrinter(noHeaders, withNamespace bool) *kctl.HumanReadablePrinter

NewHumanReadablePrinter returns a new HumanReadablePrinter

func PrintTemplateParameters added in v0.4.1

func PrintTemplateParameters(params []templateapi.Parameter, output io.Writer) error

PrintTemplateParameters the Template parameters with their default values

Types

type BuildConfigDescriber

type BuildConfigDescriber struct {
	client.Interface
	// contains filtered or unexported fields
}

BuildConfigDescriber generates information about a buildConfig

func (*BuildConfigDescriber) Describe

func (d *BuildConfigDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a buildConfig

func (*BuildConfigDescriber) DescribeTriggers

func (d *BuildConfigDescriber) DescribeTriggers(bc *buildapi.BuildConfig, out *tabwriter.Writer)

DescribeTriggers generates information about the triggers associated with a buildconfig

type BuildDescriber

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

BuildDescriber generates information about a build

func (*BuildDescriber) Describe

func (d *BuildDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a build

func (*BuildDescriber) DescribeUser

func (d *BuildDescriber) DescribeUser(out *tabwriter.Writer, label string, u buildapi.SourceControlUser)

DescribeUser formats the description of a user

type BuildLogDescriber added in v0.4.1

type BuildLogDescriber struct {
	client.Interface
}

BuildLogDescriber generates information about a BuildLog

func (*BuildLogDescriber) Describe added in v0.4.1

func (d *BuildLogDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a buildLog

type ClusterPolicyBindingDescriber added in v0.5.1

type ClusterPolicyBindingDescriber struct {
	client.Interface
}

ClusterPolicyBindingDescriber generates information about a Project

func (*ClusterPolicyBindingDescriber) Describe added in v0.5.1

func (d *ClusterPolicyBindingDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a policyBinding

type ClusterPolicyDescriber added in v0.5.1

type ClusterPolicyDescriber struct {
	client.Interface
}

ClusterPolicyDescriber generates information about a Project

func (*ClusterPolicyDescriber) Describe added in v0.5.1

func (d *ClusterPolicyDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a policy TODO make something a lot prettier

type ClusterRoleBindingDescriber added in v0.5.1

type ClusterRoleBindingDescriber struct {
	client.Interface
}

ClusterRoleBindingDescriber generates information about a Project

func (*ClusterRoleBindingDescriber) Describe added in v0.5.1

func (d *ClusterRoleBindingDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a roleBinding

type ClusterRoleDescriber added in v0.5.1

type ClusterRoleDescriber struct {
	client.Interface
}

func (*ClusterRoleDescriber) Describe added in v0.5.1

func (d *ClusterRoleDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a role

type DeploymentConfigDescriber

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

DeploymentConfigDescriber generates information about a DeploymentConfig

func NewDeploymentConfigDescriber added in v0.2.2

func NewDeploymentConfigDescriber(client client.Interface, kclient kclient.Interface) *DeploymentConfigDescriber

NewDeploymentConfigDescriber returns a new DeploymentConfigDescriber

func NewDeploymentConfigDescriberForConfig added in v0.2.2

func NewDeploymentConfigDescriberForConfig(client client.Interface, kclient kclient.Interface, config *deployapi.DeploymentConfig) *DeploymentConfigDescriber

NewDeploymentConfigDescriberForConfig returns a new DeploymentConfigDescriber for a DeploymentConfig

func (*DeploymentConfigDescriber) Describe

func (d *DeploymentConfigDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a DeploymentConfig

type IdentityDescriber added in v0.4.2

type IdentityDescriber struct {
	client.Interface
}

IdentityDescriber generates information about a user

func (*IdentityDescriber) Describe added in v0.4.2

func (d *IdentityDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of an identity

type ImageDescriber

type ImageDescriber struct {
	client.Interface
}

ImageDescriber generates information about a Image

func (*ImageDescriber) Describe

func (d *ImageDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of an image

type ImageStreamDescriber added in v0.4.3

type ImageStreamDescriber struct {
	client.Interface
}

ImageStreamDescriber generates information about a ImageStream

func (*ImageStreamDescriber) Describe added in v0.4.3

func (d *ImageStreamDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of an imageStream

type ImageStreamImageDescriber added in v0.4.2

type ImageStreamImageDescriber struct {
	client.Interface
}

ImageStreamImageDescriber generates information about a ImageStreamImage (Image).

func (*ImageStreamImageDescriber) Describe added in v0.4.2

func (d *ImageStreamImageDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of an imageStreamImage

type ImageStreamTagDescriber added in v0.4.3

type ImageStreamTagDescriber struct {
	client.Interface
}

ImageStreamTagDescriber generates information about a ImageStreamTag (Image).

func (*ImageStreamTagDescriber) Describe added in v0.4.3

func (d *ImageStreamTagDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of an imageStreamTag

type LatestDeploymentsDescriber added in v0.5.2

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

func NewLatestDeploymentsDescriber added in v0.5.2

func NewLatestDeploymentsDescriber(client client.Interface, kclient kclient.Interface, count int) *LatestDeploymentsDescriber

NewLatestDeploymentsDescriber lists the latest deployments limited to "count". In case count == -1, list back to the last successful.

func (*LatestDeploymentsDescriber) Describe added in v0.5.2

func (d *LatestDeploymentsDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of the latest deployments for a config

type PolicyBindingDescriber added in v0.2.2

type PolicyBindingDescriber struct {
	client.Interface
}

PolicyBindingDescriber generates information about a Project

func (*PolicyBindingDescriber) Describe added in v0.2.2

func (d *PolicyBindingDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a policyBinding

type PolicyDescriber added in v0.2.2

type PolicyDescriber struct {
	client.Interface
}

PolicyDescriber generates information about a Project

func (*PolicyDescriber) Describe added in v0.2.2

func (d *PolicyDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a policy TODO make something a lot prettier

type ProjectDescriber

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

ProjectDescriber generates information about a Project

func (*ProjectDescriber) Describe

func (d *ProjectDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a project

type ProjectStatusDescriber added in v0.4.3

type ProjectStatusDescriber struct {
	K kclient.Interface
	C client.Interface
}

ProjectStatusDescriber generates extended information about a Project

func (*ProjectStatusDescriber) Describe added in v0.4.3

func (d *ProjectStatusDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a project

type RoleBindingDescriber added in v0.4.2

type RoleBindingDescriber struct {
	client.Interface
}

RoleBindingDescriber generates information about a Project

func (*RoleBindingDescriber) Describe added in v0.4.2

func (d *RoleBindingDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a roleBinding

type RoleDescriber added in v0.4.2

type RoleDescriber struct {
	client.Interface
}

RoleDescriber generates information about a Project

func (*RoleDescriber) Describe added in v0.4.2

func (d *RoleDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a role

type RouteDescriber

type RouteDescriber struct {
	client.Interface
}

RouteDescriber generates information about a Route

func (*RouteDescriber) Describe

func (d *RouteDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a route

type SortableProjects added in v0.5.1

type SortableProjects []projectapi.Project

SortableProjects is a list of projects that can be sorted

func (SortableProjects) Len added in v0.5.1

func (list SortableProjects) Len() int

func (SortableProjects) Less added in v0.5.1

func (list SortableProjects) Less(i, j int) bool

func (SortableProjects) Swap added in v0.5.1

func (list SortableProjects) Swap(i, j int)

type TemplateDescriber added in v0.3.2

TemplateDescriber generates information about a template

func (*TemplateDescriber) Describe added in v0.3.2

func (d *TemplateDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a template

func (*TemplateDescriber) DescribeParameters added in v0.3.2

func (d *TemplateDescriber) DescribeParameters(params []templateapi.Parameter, out *tabwriter.Writer)

DescribeParameters prints out information about the parameters of a template

func (*TemplateDescriber) DescribeTemplate added in v0.5.1

func (d *TemplateDescriber) DescribeTemplate(template *templateapi.Template) (string, error)

type UserDescriber added in v0.4.2

type UserDescriber struct {
	client.Interface
}

UserDescriber generates information about a user

func (*UserDescriber) Describe added in v0.4.2

func (d *UserDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a user

type UserIdentityMappingDescriber added in v0.4.2

type UserIdentityMappingDescriber struct {
	client.Interface
}

UserIdentityMappingDescriber generates information about a user

func (*UserIdentityMappingDescriber) Describe added in v0.4.2

func (d *UserIdentityMappingDescriber) Describe(namespace, name string) (string, error)

Describe returns the description of a userIdentity

Jump to

Keyboard shortcuts

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