Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b4afb09a
Commit
b4afb09a
authored
Sep 12, 2017
by
Ma Shimiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small tfix in cmd factory comment
Signed-off-by:
Ma Shimiao
<
mashimiao.fnst@cn.fujitsu.com
>
parent
156c4b44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
factory.go
pkg/kubectl/cmd/util/factory.go
+5
-5
No files found.
pkg/kubectl/cmd/util/factory.go
View file @
b4afb09a
...
...
@@ -69,10 +69,10 @@ var (
// Factory provides abstractions that allow the Kubectl command to be extended across multiple types
// of resources and different API sets.
// The rings are here for a reason.
In order for composers to be able to provide alternative factory implementations
// The rings are here for a reason. In order for composers to be able to provide alternative factory implementations
// they need to provide low level pieces of *certain* functions so that when the factory calls back into itself
// it uses the custom version of the function.
Rather than try to enumerate everything that someone would want to override
// we split the factory into rings, where each ring can depend on methods an earlier ring, but cannot depend
// it uses the custom version of the function. Rather than try to enumerate everything that someone would want to override
// we split the factory into rings, where each ring can depend on methods
in
an earlier ring, but cannot depend
// upon peer methods in its own ring.
// TODO: make the functions interfaces
// TODO: pass the various interfaces on the factory directly into the command constructors (so the
...
...
@@ -198,7 +198,7 @@ type ClientAccessFactory interface {
PrintObjectSpecificMessage
(
obj
runtime
.
Object
,
out
io
.
Writer
)
}
// ObjectMappingFactory holds the second level of factory methods.
These functions depend upon ClientAccessFactory methods.
// ObjectMappingFactory holds the second level of factory methods. These functions depend upon ClientAccessFactory methods.
// Generally they provide object typing and functions that build requests based on the negotiated clients.
type
ObjectMappingFactory
interface
{
// Returns interfaces for dealing with arbitrary runtime.Objects.
...
...
@@ -240,7 +240,7 @@ type ObjectMappingFactory interface {
OpenAPISchema
()
(
openapi
.
Resources
,
error
)
}
// BuilderFactory holds the
second level of factory methods.
These functions depend upon ObjectMappingFactory and ClientAccessFactory methods.
// BuilderFactory holds the
third level of factory methods.
These functions depend upon ObjectMappingFactory and ClientAccessFactory methods.
// Generally they depend upon client mapper functions
type
BuilderFactory
interface
{
// PrinterForCommand returns the default printer for the command. It requires that certain options
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment