src/client/pfs.go
func (c APIClient) TagObject(hash string, tags ...string) error {
	var _tags []*pfs.Tag
	for _, tag := range tags {
		_tags = append(_tags, &pfs.Tag{Name: tag})
	}
	if _, err := c.ObjectAPIClient.TagObject(
		c.Ctx(),
		&pfs.TagObjectRequest{
			Object: &pfs.Object{Hash: hash},
			Tags:   _tags,
		},
	); err != nil {
		return grpcutil.ScrubGRPC(err)
	}
	return nil
}
func (c APIClient) TagObject(hash string, tags ...string) error {
	var _tags []*pfs.Tag
	for _, tag := range tags {
		_tags = append(_tags, &pfs.Tag{Name: tag})
	}
	if _, err := c.ObjectAPIClient.TagObject(
		c.Ctx(),
		&pfs.TagObjectRequest{
			Object: &pfs.Object{Hash: hash},
			Tags:   _tags,
		},
	); err != nil {
		return grpcutil.ScrubGRPC(err)
	}
	return nil
}
func ( c APIClient ) TagObject ( hash string , tags ... string ) error { var _tags [ ] * pfs . Tag for _ , tag := range tags { _tags = append ( _tags , & pfs . Tag { Name : tag } ) } if _ , err := c . ObjectAPIClient . TagObject ( c . Ctx ( ) , & pfs . TagObjectRequest { Object : & pfs . Object { Hash : hash } , Tags : _tags , } , ) ; err != nil { return grpcutil . ScrubGRPC ( err ) } return nil }
// TagObject applies a tag to an existing object.
TagObject applies a tag to an existing object .