Skip to content

Commit

Permalink
endpoint: do not export ParseEndpoint
Browse files Browse the repository at this point in the history
This is not used outside of `pkg/endpoint` anymore.

Signed-off by: Ian Vernon <ian@cilium.io>
  • Loading branch information
Ian Vernon authored and gandro committed Sep 5, 2019
1 parent 54ddcd2 commit 6e02732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/endpoint/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,11 +688,11 @@ func FilterEPDir(dirFiles []os.FileInfo) []string {
return eptsID
}

// ParseEndpoint parses the given strEp which is in the form of:
// parseEndpoint parses the given strEp which is in the form of:
// common.CiliumCHeaderPrefix + common.Version + ":" + endpointBase64
// Note that the parse'd endpoint's identity is only partially restored. The
// caller must call `SetIdentity()` to make the returned endpoint's identity useful.
func ParseEndpoint(owner regeneration.Owner, strEp string) (*Endpoint, error) {
func parseEndpoint(owner regeneration.Owner, strEp string) (*Endpoint, error) {
// TODO: Provide a better mechanism to update from old version once we bump
// TODO: cilium version.
strEpSlice := strings.Split(strEp, ":")
Expand Down
2 changes: 1 addition & 1 deletion pkg/endpoint/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func ReadEPsFromDirNames(owner regeneration.Owner, basePath string, eptsDirNames
scopedLog.WithError(err).Warn("Unable to read the C header file")
continue
}
ep, err := ParseEndpoint(owner, strEp)
ep, err := parseEndpoint(owner, strEp)
if err != nil {
scopedLog.WithError(err).Warn("Unable to parse the C header file")
continue
Expand Down

0 comments on commit 6e02732

Please sign in to comment.