Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/doc interfaces #4599

Merged
merged 15 commits into from
Jan 24, 2018
Merged

Feat/doc interfaces #4599

merged 15 commits into from
Jan 24, 2018

Conversation

whyrusleeping
Copy link
Member

Document interfaces

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
@ghost ghost assigned whyrusleeping Jan 21, 2018
@ghost ghost added the status/in-progress In progress label Jan 21, 2018
@@ -40,12 +40,19 @@ type Blockstore interface {
DeleteBlock(*cid.Cid) error
Has(*cid.Cid) (bool, error)
Get(*cid.Cid) (blocks.Block, error)

// AddBlock puts a given block to the underlying datastore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely wrong method name here :D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmmm, copy paste has not served me well

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
@whyrusleeping
Copy link
Member Author

@karalabe Any other bits that feel neglected?

whyrusleeping and others added 2 commits January 22, 2018 11:20
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
@ghost ghost assigned frrist Jan 22, 2018
core/core.go Outdated
@@ -670,6 +676,7 @@ func (n *IpfsNode) loadID() error {
return nil
}

// GetKey will return the IpfsNode key with name `name`.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe private key or keystore key instead of IpfsNode key

func NewCoreAPI(n *core.IpfsNode) coreiface.CoreAPI {
api := &CoreAPI{n}
return api
}

// Unixfs returns the Unixfs API.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like there should be a thing after API...

// Unixfs returns the Unixfs API *doodad*

thoughts @magik6k @lgierth ?

Copy link
Member

@frrist frrist Jan 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about interface? - If we like that, i'll put it on the others below

String() string
// Cid returns path cid
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

returns the cid that the path refers to. (as opposed to the root)

Root() *cid.Cid
// Resolved returns whether cid is nil
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this may be technically true, I think we want to say whether or not this path has been fully resolved.

cc @magik6k @lgierth

Name() string
//Path returns key path
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space before Path

func (e *ipnsEntry) Name() string {
return e.name
}

// Value returns the inpnEntry value.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@whyrusleeping
Copy link
Member Author

@magik6k wanna give this another look over?

License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
@whyrusleeping whyrusleeping merged commit cfdcd98 into master Jan 24, 2018
@whyrusleeping whyrusleeping deleted the feat/doc-interfaces branch January 24, 2018 22:02
@ghost ghost removed the status/in-progress In progress label Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants