Skip to content

Examples for PlaunAuth #9

@svanichkin

Description

@svanichkin

I tried to collect from examples the server and the client with authentication by password, this example does not work or an additional explanation is required for it.
I created an authentication server from the example:
fs.WithAuth(fs.PlainAuth(map[string]string{"kyle": "foo"}))
As well as an example of an authentication client:
client, err = cl.NewClient(conn, "kyle", "", cl.WithAuth(cl.PlainAuth("foo")))
Log:
2023/05/02 08:43:12 Storing info in C: 0x1400006a050, t.Afid: 1
2023/05/02 08:43:12 READ1
2023/05/02 08:43:12 WRITE1
2023/05/02 08:43:12 WRITE1

Perhaps I am doing something wrong, but I do not find any explanation in the code or documentation.

Additionally, need examples for working with a real file system, as well as an example of work with clone fs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions