osc

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright 2023 The Cloud-Barista Authors.

Licensed 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.

Copyright 2023 The Cloud-Barista Authors.

Licensed 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.

Copyright 2023 The Cloud-Barista Authors.

Licensed 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.

Copyright 2023 The Cloud-Barista Authors.

Licensed 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

This section is empty.

Functions

This section is empty.

Types

type FilterableOSFS added in v0.4.3

type FilterableOSFS interface {
	ObjectListWithFilter(*filtering.ObjectFilter) ([]*models.Object, error)
}

type OSController

type OSController struct {
	// contains filtered or unexported fields
}

func New

func New(osfs OSFS, opts ...Option) (*OSController, error)

func (*OSController) BucketList added in v0.4.7

func (osc *OSController) BucketList() ([]models.Bucket, error)

func (*OSController) Copy

func (src *OSController) Copy(dst *OSController, flt *filtering.ObjectFilter) error

func (*OSController) CreateBucket

func (osc *OSController) CreateBucket() error

func (*OSController) DeleteBucket

func (osc *OSController) DeleteBucket() error

func (*OSController) MGet

func (osc *OSController) MGet(dirPath string, flt *filtering.ObjectFilter) error

func (*OSController) MPut

func (osc *OSController) MPut(dirPath string) error

func (*OSController) ObjectList

func (osc *OSController) ObjectList() ([]*models.Object, error)

func (*OSController) ObjectListWithFilter added in v0.4.3

func (o *OSController) ObjectListWithFilter(flt *filtering.ObjectFilter) ([]*models.Object, error)

type OSFS

type OSFS interface {
	CreateBucket() error
	DeleteBucket() error
	ObjectList() ([]*models.Object, error)
	BucketList() ([]models.Bucket, error)

	Open(name string) (io.ReadCloser, error)
	Create(name string) (io.WriteCloser, error)
}

type Option

type Option func(*OSController)

func WithLogger

func WithLogger(logger *zerolog.Logger) Option

func WithThreads

func WithThreads(count int) Option

type Result

type Result struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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