om

package
v0.0.0-...-06a9ffa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Overview

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var OM_PROTOCOL = "org.apache.hadoop.ozone.om.protocol.OzoneManagerProtocol"

Functions

This section is empty.

Types

type OmClient

type OmClient struct {
	OmHost string
	// contains filtered or unexported fields
}

func CreateOmClient

func CreateOmClient(omhost string) OmClient

func (*OmClient) AllocateBlock

func (om *OmClient) AllocateBlock(volume string, bucket string, key string, clientID *uint64) (*ozone_proto.AllocateBlockResponse, error)

func (*OmClient) CommitKey

func (om *OmClient) CommitKey(volume string, bucket string, key string, id *uint64, keyLocations []*ozone_proto.KeyLocation, size uint64) (common.Key, error)

func (*OmClient) CreateBucket

func (om *OmClient) CreateBucket(volume string, bucket string) error

func (*OmClient) CreateKey

func (om *OmClient) CreateKey(volume string, bucket string, key string) (*ozone_proto.CreateKeyResponse, error)

func (*OmClient) CreateVolume

func (om *OmClient) CreateVolume(name string) error

func (*OmClient) GetBucket

func (om *OmClient) GetBucket(volume string, bucket string) (common.Bucket, error)

func (*OmClient) GetKey

func (om *OmClient) GetKey(volume string, bucket string, key string) (*ozone_proto.KeyInfo, error)

func (*OmClient) GetVolume

func (om *OmClient) GetVolume(name string) (common.Volume, error)

func (*OmClient) ListBucket

func (om *OmClient) ListBucket(volume string) ([]common.Bucket, error)

func (*OmClient) ListKeys

func (om *OmClient) ListKeys(volume string, bucket string) ([]*ozone_proto.KeyInfo, error)

func (*OmClient) ListKeysPrefix

func (om *OmClient) ListKeysPrefix(volume string, bucket string, prefix string) ([]*ozone_proto.KeyInfo, error)

func (*OmClient) ListVolumes

func (om *OmClient) ListVolumes() ([]common.Volume, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL