Documentation ¶
Index ¶
- Constants
- Variables
- func DescribableResources() []string
- func DescribePolicy(policy *authorizationapi.Policy) (string, error)
- func DescribePolicyBinding(policyBinding *authorizationapi.PolicyBinding) (string, error)
- func DescribeRole(role *authorizationapi.Role) (string, error)
- func DescribeRoleBinding(roleBinding *authorizationapi.RoleBinding, role *authorizationapi.Role, ...) (string, error)
- func DescriberFor(kind string, c *client.Client, kclient kclient.Interface, host string) (kctl.Describer, bool)
- func FormatRelativeTime(t time.Time) string
- func NewHumanReadablePrinter(noHeaders, withNamespace, wide bool, showAll bool, columnLabels []string) *kctl.HumanReadablePrinter
- func PrintTemplateParameters(params []templateapi.Parameter, output io.Writer) error
- type BuildConfigDescriber
- type BuildDescriber
- type ChainDescriber
- type ClusterPolicyBindingDescriber
- type ClusterPolicyDescriber
- type ClusterRoleBindingDescriber
- type ClusterRoleDescriber
- type DeploymentConfigDescriber
- type DepthFirst
- type GraphLoader
- type GroupDescriber
- type IdentityDescriber
- type ImageDescriber
- type ImageStreamDescriber
- type ImageStreamImageDescriber
- type ImageStreamTagDescriber
- type LatestDeploymentsDescriber
- type NodeStack
- type NotFoundErr
- type PolicyBindingDescriber
- type PolicyDescriber
- type ProjectDescriber
- type ProjectStatusDescriber
- type RoleBindingDescriber
- type RoleDescriber
- type RouteDescriber
- type SortableProjects
- type TemplateDescriber
- type UserDescriber
- type UserIdentityMappingDescriber
Constants ¶
const ForbiddenListWarning = "Forbidden"
Variables ¶
var ( // IsPersonalSubjectAccessReviewColumns contains known custom role extensions IsPersonalSubjectAccessReviewColumns = []string{"NAME"} )
Functions ¶
func DescribableResources ¶
func DescribableResources() []string
List of all resource types we can describe
func DescribePolicy ¶
func DescribePolicy(policy *authorizationapi.Policy) (string, error)
func DescribePolicyBinding ¶
func DescribePolicyBinding(policyBinding *authorizationapi.PolicyBinding) (string, error)
func DescribeRole ¶
func DescribeRole(role *authorizationapi.Role) (string, error)
func DescribeRoleBinding ¶
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 FormatRelativeTime ¶ added in v1.0.7
FormatRelativeTime converts a time field into a human readable age string (hours, minutes, days).
func NewHumanReadablePrinter ¶
func NewHumanReadablePrinter(noHeaders, withNamespace, wide bool, showAll bool, columnLabels []string) *kctl.HumanReadablePrinter
NewHumanReadablePrinter returns a new HumanReadablePrinter
func PrintTemplateParameters ¶
func PrintTemplateParameters(params []templateapi.Parameter, output io.Writer) error
PrintTemplateParameters the Template parameters with their default values
Types ¶
type BuildConfigDescriber ¶
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 ChainDescriber ¶ added in v1.0.4
type ChainDescriber struct {
// contains filtered or unexported fields
}
ChainDescriber generates extended information about a chain of dependencies of an image stream
func NewChainDescriber ¶ added in v1.0.4
func NewChainDescriber(c client.BuildConfigsNamespacer, namespaces sets.String, out string) *ChainDescriber
NewChainDescriber returns a new ChainDescriber
func (*ChainDescriber) Describe ¶ added in v1.0.4
func (d *ChainDescriber) Describe(ist *imageapi.ImageStreamTag, includeInputImages bool) (string, error)
Describe returns the output of the graph starting from the provided image stream tag (name:tag) in namespace. Namespace is needed here because image stream tags with the same name can be found across different namespaces.
type ClusterPolicyBindingDescriber ¶
ClusterPolicyBindingDescriber generates information about a Project
type ClusterPolicyDescriber ¶
ClusterPolicyDescriber generates information about a Project
type ClusterRoleBindingDescriber ¶
ClusterRoleBindingDescriber generates information about a Project
type ClusterRoleDescriber ¶
type DeploymentConfigDescriber ¶
type DeploymentConfigDescriber struct {
// contains filtered or unexported fields
}
DeploymentConfigDescriber generates information about a DeploymentConfig
func NewDeploymentConfigDescriber ¶
func NewDeploymentConfigDescriber(client client.Interface, kclient kclient.Interface) *DeploymentConfigDescriber
NewDeploymentConfigDescriber returns a new DeploymentConfigDescriber
func NewDeploymentConfigDescriberForConfig ¶
func NewDeploymentConfigDescriberForConfig(client client.Interface, kclient kclient.Interface, config *deployapi.DeploymentConfig) *DeploymentConfigDescriber
NewDeploymentConfigDescriberForConfig returns a new DeploymentConfigDescriber for a DeploymentConfig
type DepthFirst ¶ added in v1.0.5
type DepthFirst struct { EdgeFilter func(graph.Edge) bool Visit func(u, v graph.Node) // contains filtered or unexported fields }
DepthFirst implements stateful depth-first graph traversal. Modifies behavior of visitor.DepthFirst to allow nodes to be visited multiple times as long as they're not in the current stack
type GraphLoader ¶ added in v1.0.2
type GraphLoader interface { // Load is responsible for gathering and saving the objects this GraphLoader should AddToGraph Load() error // AddToGraph AddToGraph(g osgraph.Graph) error }
GraphLoader is a stateful interface that provides methods for building the nodes of a graph
type GroupDescriber ¶ added in v1.0.4
type GroupDescriber struct {
// contains filtered or unexported fields
}
GroupDescriber generates information about a group
type IdentityDescriber ¶
IdentityDescriber generates information about a user
type ImageDescriber ¶
ImageDescriber generates information about a Image
type ImageStreamDescriber ¶
ImageStreamDescriber generates information about a ImageStream
type ImageStreamImageDescriber ¶
ImageStreamImageDescriber generates information about a ImageStreamImage (Image).
type ImageStreamTagDescriber ¶
ImageStreamTagDescriber generates information about a ImageStreamTag (Image).
type LatestDeploymentsDescriber ¶
type LatestDeploymentsDescriber struct {
// contains filtered or unexported fields
}
func NewLatestDeploymentsDescriber ¶
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.
type NodeStack ¶ added in v1.0.7
NodeStack implements a LIFO stack of graph.Node. NodeStack is internal only in go 1.5.
type NotFoundErr ¶ added in v1.0.4
type NotFoundErr string
NotFoundErr is returned when the imageStreamTag (ist) of interest cannot be found in the graph. This doesn't mean though that the ist does not exist. A user may have an image stream without a build configuration pointing at it. In that case, the ist of interest simply doesn't have other dependant ists
func (NotFoundErr) Error ¶ added in v1.0.4
func (e NotFoundErr) Error() string
type PolicyBindingDescriber ¶
PolicyBindingDescriber generates information about a Project
type PolicyDescriber ¶
PolicyDescriber generates information about a Project
type ProjectDescriber ¶
type ProjectDescriber struct {
// contains filtered or unexported fields
}
ProjectDescriber generates information about a Project
type ProjectStatusDescriber ¶
ProjectStatusDescriber generates extended information about a Project
type RoleBindingDescriber ¶
RoleBindingDescriber generates information about a Project
type RoleDescriber ¶
RoleDescriber generates information about a Project
type RouteDescriber ¶
RouteDescriber generates information about a Route
type SortableProjects ¶
type SortableProjects []projectapi.Project
SortableProjects is a list of projects that can be sorted
func (SortableProjects) Len ¶
func (list SortableProjects) Len() int
func (SortableProjects) Less ¶
func (list SortableProjects) Less(i, j int) bool
func (SortableProjects) Swap ¶
func (list SortableProjects) Swap(i, j int)
type TemplateDescriber ¶
type TemplateDescriber struct { client.Interface meta.MetadataAccessor runtime.ObjectTyper kctl.ObjectDescriber }
TemplateDescriber generates information about a template
func (*TemplateDescriber) Describe ¶
func (d *TemplateDescriber) Describe(namespace, name string) (string, error)
Describe returns the description of a template
func (*TemplateDescriber) DescribeParameters ¶
func (d *TemplateDescriber) DescribeParameters(params []templateapi.Parameter, out *tabwriter.Writer)
DescribeParameters prints out information about the parameters of a template
func (*TemplateDescriber) DescribeTemplate ¶
func (d *TemplateDescriber) DescribeTemplate(template *templateapi.Template) (string, error)
type UserDescriber ¶
UserDescriber generates information about a user
type UserIdentityMappingDescriber ¶
UserIdentityMappingDescriber generates information about a user