Documentation ¶
Index ¶
- Constants
- func DescribeClusterQuota(quota *quotaapi.ClusterResourceQuota) (string, error)
- func DescribeImage(image *imageapi.Image, imageName string) (string, error)
- func DescribeImageStream(imageStream *imageapi.ImageStream) (string, error)
- func DescribePolicyRule(out *tabwriter.Writer, rule authorizationapi.PolicyRule, indent string)
- func DescribeRole(role *authorizationapi.Role) (string, error)
- func DescribeRoleBinding(roleBinding *authorizationapi.RoleBinding, role *authorizationapi.Role, ...) (string, error)
- func DescriberFor(kind schema.GroupKind, clientConfig *rest.Config, kclient kclientset.Interface, ...) (kprinters.Describer, bool)
- func FormatRelativeTime(t time.Time) string
- func PrintTemplateParameters(params []templateapi.Parameter, output io.Writer) error
- type AppliedClusterQuotaDescriber
- type BuildConfigDescriber
- type BuildDescriber
- type ChainDescriber
- type ClusterNetworkDescriber
- type ClusterQuotaDescriber
- type ClusterRoleBindingDescriber
- type ClusterRoleDescriber
- type DeploymentConfigDescriber
- type DepthFirst
- type DescribeWebhook
- type EgressNetworkPolicyDescriber
- type GraphLoader
- type GroupDescriber
- type HostSubnetDescriber
- type IdentityDescriber
- type ImageDescriber
- type ImageStreamDescriber
- type ImageStreamImageDescriber
- type ImageStreamTagDescriber
- type LatestDeploymentsDescriber
- type NetNamespaceDescriber
- type NodeStack
- type NotFoundErr
- type OAuthAccessTokenDescriber
- type OverlappingControllers
- type ProjectDescriber
- type ProjectStatusDescriber
- type RoleBindingDescriber
- type RoleBindingRestrictionDescriber
- type RoleDescriber
- type RouteDescriber
- type SecurityContextConstraintsDescriber
- type TemplateDescriber
- func (d *TemplateDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
- func (d *TemplateDescriber) DescribeMessage(msg string, out *tabwriter.Writer)
- func (d *TemplateDescriber) DescribeParameters(params []templateapi.Parameter, out *tabwriter.Writer)
- func (d *TemplateDescriber) DescribeTemplate(template *templateapi.Template) (string, error)
- type TemplateInstanceDescriber
- func (d *TemplateInstanceDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
- func (d *TemplateInstanceDescriber) DescribeConditions(conditions []templateapi.TemplateInstanceCondition, out *tabwriter.Writer)
- func (d *TemplateInstanceDescriber) DescribeObjects(objects []templateapi.TemplateInstanceObject, out *tabwriter.Writer)
- func (d *TemplateInstanceDescriber) DescribeParameters(template templateapi.Template, namespace, name string, out *tabwriter.Writer)
- func (d *TemplateInstanceDescriber) DescribeTemplateInstance(templateInstance *templateapi.TemplateInstance, namespace string, ...) (string, error)
- type UserDescriber
- type UserIdentityMappingDescriber
Constants ¶
const ForbiddenListWarning = "Forbidden"
const PolicyRuleHeadings = "Verbs\tNon-Resource URLs\tResource Names\tAPI Groups\tResources"
Variables ¶
This section is empty.
Functions ¶
func DescribeClusterQuota ¶
func DescribeClusterQuota(quota *quotaapi.ClusterResourceQuota) (string, error)
func DescribeImageStream ¶
func DescribeImageStream(imageStream *imageapi.ImageStream) (string, error)
func DescribePolicyRule ¶
func DescribePolicyRule(out *tabwriter.Writer, rule authorizationapi.PolicyRule, indent string)
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 schema.GroupKind, clientConfig *rest.Config, kclient kclientset.Interface, host string) (kprinters.Describer, bool)
DescriberFor returns a describer for a given kind of resource
func FormatRelativeTime ¶
FormatRelativeTime converts a time field into a human readable age string (hours, minutes, days).
func PrintTemplateParameters ¶
func PrintTemplateParameters(params []templateapi.Parameter, output io.Writer) error
PrintTemplateParameters the Template parameters with their default values
Types ¶
type AppliedClusterQuotaDescriber ¶
type AppliedClusterQuotaDescriber struct {
// contains filtered or unexported fields
}
func (*AppliedClusterQuotaDescriber) Describe ¶
func (d *AppliedClusterQuotaDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
type BuildConfigDescriber ¶
type BuildConfigDescriber struct {
// contains filtered or unexported fields
}
BuildConfigDescriber generates information about a buildConfig
func (*BuildConfigDescriber) Describe ¶
func (d *BuildConfigDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (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, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a build
type ChainDescriber ¶
type ChainDescriber struct {
// contains filtered or unexported fields
}
ChainDescriber generates extended information about a chain of dependencies of an image stream
func NewChainDescriber ¶
func NewChainDescriber(c buildv1client.BuildConfigsGetter, namespaces sets.String, out string) *ChainDescriber
NewChainDescriber returns a new ChainDescriber
func (*ChainDescriber) Describe ¶
func (d *ChainDescriber) Describe(ist *imagev1.ImageStreamTag, includeInputImages, reverse 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 ClusterNetworkDescriber ¶
type ClusterNetworkDescriber struct {
// contains filtered or unexported fields
}
func (*ClusterNetworkDescriber) Describe ¶
func (d *ClusterNetworkDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a ClusterNetwork
type ClusterQuotaDescriber ¶
type ClusterQuotaDescriber struct {
// contains filtered or unexported fields
}
func (*ClusterQuotaDescriber) Describe ¶
func (d *ClusterQuotaDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
type ClusterRoleBindingDescriber ¶
type ClusterRoleBindingDescriber struct {
// contains filtered or unexported fields
}
ClusterRoleBindingDescriber generates information about a Project
func (*ClusterRoleBindingDescriber) Describe ¶
func (d *ClusterRoleBindingDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a roleBinding
type ClusterRoleDescriber ¶
type ClusterRoleDescriber struct {
// contains filtered or unexported fields
}
func (*ClusterRoleDescriber) Describe ¶
func (d *ClusterRoleDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (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 ¶
func NewDeploymentConfigDescriber(client appstypedclient.AppsV1Interface, kclient kubernetes.Interface, config *appsv1.DeploymentConfig) *DeploymentConfigDescriber
NewDeploymentConfigDescriber returns a new DeploymentConfigDescriber
func (*DeploymentConfigDescriber) Describe ¶
func (d *DeploymentConfigDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a DeploymentConfig
type DepthFirst ¶
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 DescribeWebhook ¶
DescribeWebhook holds the URL information about a webhook and for generic webhooks it tells us if we allow env variables.
type EgressNetworkPolicyDescriber ¶
type EgressNetworkPolicyDescriber struct {
// contains filtered or unexported fields
}
func (*EgressNetworkPolicyDescriber) Describe ¶
func (d *EgressNetworkPolicyDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of an EgressNetworkPolicy
type GraphLoader ¶
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 ¶
type GroupDescriber struct {
// contains filtered or unexported fields
}
GroupDescriber generates information about a group
func (*GroupDescriber) Describe ¶
func (d *GroupDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a group
type HostSubnetDescriber ¶
type HostSubnetDescriber struct {
// contains filtered or unexported fields
}
func (*HostSubnetDescriber) Describe ¶
func (d *HostSubnetDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a HostSubnet
type IdentityDescriber ¶
type IdentityDescriber struct {
// contains filtered or unexported fields
}
IdentityDescriber generates information about a user
func (*IdentityDescriber) Describe ¶
func (d *IdentityDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of an identity
type ImageDescriber ¶
type ImageDescriber struct {
// contains filtered or unexported fields
}
ImageDescriber generates information about a Image
func (*ImageDescriber) Describe ¶
func (d *ImageDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of an image
type ImageStreamDescriber ¶
type ImageStreamDescriber struct {
ImageClient imageclient.ImageInterface
}
ImageStreamDescriber generates information about a ImageStream (Image).
func (*ImageStreamDescriber) Describe ¶
func (d *ImageStreamDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of an imageStream
type ImageStreamImageDescriber ¶
type ImageStreamImageDescriber struct {
// contains filtered or unexported fields
}
ImageStreamImageDescriber generates information about a ImageStreamImage (Image).
func (*ImageStreamImageDescriber) Describe ¶
func (d *ImageStreamImageDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of an imageStreamImage
type ImageStreamTagDescriber ¶
type ImageStreamTagDescriber struct {
// contains filtered or unexported fields
}
ImageStreamTagDescriber generates information about a ImageStreamTag (Image).
func (*ImageStreamTagDescriber) Describe ¶
func (d *ImageStreamTagDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of an imageStreamTag
type LatestDeploymentsDescriber ¶
type LatestDeploymentsDescriber struct {
// contains filtered or unexported fields
}
func NewLatestDeploymentsDescriber ¶
func NewLatestDeploymentsDescriber(client appstypedclient.AppsV1Interface, kclient kubernetes.Interface, count int) *LatestDeploymentsDescriber
NewLatestDeploymentsDescriber lists the latest deployments limited to "count". In case count == -1, list back to the last successful.
type NetNamespaceDescriber ¶
type NetNamespaceDescriber struct {
// contains filtered or unexported fields
}
func (*NetNamespaceDescriber) Describe ¶
func (d *NetNamespaceDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a NetNamespace
type NodeStack ¶
NodeStack implements a LIFO stack of graph.Node. NodeStack is internal only in go 1.5.
type NotFoundErr ¶
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 ¶
func (e NotFoundErr) Error() string
type OAuthAccessTokenDescriber ¶
type OAuthAccessTokenDescriber struct {
// contains filtered or unexported fields
}
OAuthAccessTokenDescriber generates information about an OAuth Acess Token (OAuth)
func (*OAuthAccessTokenDescriber) Describe ¶
func (d *OAuthAccessTokenDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
type OverlappingControllers ¶
type OverlappingControllers []*corev1.ReplicationController
OverlappingControllers sorts a list of controllers by creation timestamp, using their names as a tie breaker. From https://github.com/kubernetes/kubernetes/blob/9eab226947d73a77cbf8474188f216cd64cd5fef/pkg/controller/replication/replication_controller_utils.go#L81-L92 and modified to use internal instead of versioned objects.
func (OverlappingControllers) Len ¶
func (o OverlappingControllers) Len() int
func (OverlappingControllers) Less ¶
func (o OverlappingControllers) Less(i, j int) bool
func (OverlappingControllers) Swap ¶
func (o OverlappingControllers) Swap(i, j int)
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, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a project
type ProjectStatusDescriber ¶
type ProjectStatusDescriber struct { KubeClient kubernetes.Interface RESTMapper meta.RESTMapper // OpenShift clients ProjectClient projectv1client.ProjectV1Interface BuildClient buildv1client.BuildV1Interface ImageClient imagev1client.ImageV1Interface AppsClient appsv1client.AppsV1Interface RouteClient routev1client.RouteV1Interface Server string Suggest bool // root command used when calling this command CommandBaseName string RequestedNamespace string CurrentNamespace string CanRequestProjects bool LogsCommandName string SecurityPolicyCommandFormat string SetProbeCommandName string }
ProjectStatusDescriber generates extended information about a Project
type RoleBindingDescriber ¶
type RoleBindingDescriber struct {
// contains filtered or unexported fields
}
RoleBindingDescriber generates information about a Project
func (*RoleBindingDescriber) Describe ¶
func (d *RoleBindingDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a roleBinding
type RoleBindingRestrictionDescriber ¶
type RoleBindingRestrictionDescriber struct {
// contains filtered or unexported fields
}
func (*RoleBindingRestrictionDescriber) Describe ¶
func (d *RoleBindingRestrictionDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a RoleBindingRestriction.
type RoleDescriber ¶
type RoleDescriber struct {
// contains filtered or unexported fields
}
RoleDescriber generates information about a Project
func (*RoleDescriber) Describe ¶
func (d *RoleDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a role
type RouteDescriber ¶
type RouteDescriber struct {
// contains filtered or unexported fields
}
RouteDescriber generates information about a Route
func (*RouteDescriber) Describe ¶
func (d *RouteDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a route
type SecurityContextConstraintsDescriber ¶
type SecurityContextConstraintsDescriber struct {
// contains filtered or unexported fields
}
SecurityContextConstraintsDescriber generates information about an SCC
func (*SecurityContextConstraintsDescriber) Describe ¶
func (d *SecurityContextConstraintsDescriber) Describe(namespace, name string, s kprinters.DescriberSettings) (string, error)
type TemplateDescriber ¶
type TemplateDescriber struct { meta.MetadataAccessor runtime.ObjectTyper kprinters.ObjectDescriber // contains filtered or unexported fields }
TemplateDescriber generates information about a template
func (*TemplateDescriber) Describe ¶
func (d *TemplateDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a template
func (*TemplateDescriber) DescribeMessage ¶
func (d *TemplateDescriber) DescribeMessage(msg string, out *tabwriter.Writer)
DescribeMessage prints the message that will be parameter substituted and displayed to the user when this template is processed.
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 TemplateInstanceDescriber ¶
type TemplateInstanceDescriber struct { kprinters.ObjectDescriber // contains filtered or unexported fields }
TemplateInstanceDescriber generates information about a template instance
func (*TemplateInstanceDescriber) Describe ¶
func (d *TemplateInstanceDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a template instance
func (*TemplateInstanceDescriber) DescribeConditions ¶
func (d *TemplateInstanceDescriber) DescribeConditions(conditions []templateapi.TemplateInstanceCondition, out *tabwriter.Writer)
DescribeConditions prints out information about the conditions of a template instance
func (*TemplateInstanceDescriber) DescribeObjects ¶
func (d *TemplateInstanceDescriber) DescribeObjects(objects []templateapi.TemplateInstanceObject, out *tabwriter.Writer)
DescribeObjects prints out information about the objects that a template instance creates
func (*TemplateInstanceDescriber) DescribeParameters ¶
func (d *TemplateInstanceDescriber) DescribeParameters(template templateapi.Template, namespace, name string, out *tabwriter.Writer)
DescribeParameters prints out information about the secret that holds the template instance parameters kinternalprinter.SecretDescriber#Describe could have been used here, but the formatting is off when it prints the information and seems to not be easily fixable
func (*TemplateInstanceDescriber) DescribeTemplateInstance ¶
func (d *TemplateInstanceDescriber) DescribeTemplateInstance(templateInstance *templateapi.TemplateInstance, namespace string, settings kprinters.DescriberSettings) (string, error)
DescribeTemplateInstance prints out information about the template instance
type UserDescriber ¶
type UserDescriber struct {
// contains filtered or unexported fields
}
UserDescriber generates information about a user
func (*UserDescriber) Describe ¶
func (d *UserDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a user
type UserIdentityMappingDescriber ¶
type UserIdentityMappingDescriber struct {
// contains filtered or unexported fields
}
UserIdentityMappingDescriber generates information about a user
func (*UserIdentityMappingDescriber) Describe ¶
func (d *UserIdentityMappingDescriber) Describe(namespace, name string, settings kprinters.DescriberSettings) (string, error)
Describe returns the description of a userIdentity